<!doctype html>
<html 
      lang="en"
      dir="ltr">
  <head>
    <meta name="google-signin-client-id" content="721724668570-nbkv1cfusk7kk4eni4pjvepaus73b13t.apps.googleusercontent.com">
    <meta name="google-signin-scope"
          content="profile email https://www.googleapis.com/auth/developerprofiles https://www.googleapis.com/auth/developerprofiles.award">
    <meta property="og:site_name" content="Android Developers">
    <meta property="og:type" content="website"><meta name="theme-color" content="#3ddc84"><meta charset="utf-8">
    <meta content="IE=Edge" http-equiv="X-UA-Compatible">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    

    <link rel="manifest" href="/_pwa/android/manifest.json"
          crossorigin="use-credentials">
    <link rel="preconnect" href="//www.gstatic.com" crossorigin>
    <link rel="preconnect" href="//fonts.gstatic.com" crossorigin>
    <link rel="preconnect" href="//fonts.googleapis.com" crossorigin>
    <link rel="preconnect" href="//apis.google.com" crossorigin>
    <link rel="preconnect" href="//www.google-analytics.com" crossorigin><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap">
      <link rel="stylesheet"
            href="//fonts.googleapis.com/css2?family=Material+Icons&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=block"><link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/css/rebrand-app.css">
      <link rel="shortcut icon" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/favicon.svg">
    <link rel="apple-touch-icon" href="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/touchicon-180.png"><link rel="canonical" href="https://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity"><link rel="search" type="application/opensearchdescription+xml"
            title="Android Developers" href="https://developer.android.com/s/opensearch.xml">
      <link rel="alternate" hreflang="en"
          href="https://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity" /><link rel="alternate" hreflang="x-default" href="https://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity" /><title>AccountAuthenticatorActivity &nbsp;|&nbsp; Android Developers</title>

<meta property="og:title" content="AccountAuthenticatorActivity &nbsp;|&nbsp; Android Developers"><meta property="og:url" content="https://developer.android.com/reference/android/accounts/AccountAuthenticatorActivity"><meta property="og:image" content="https://developer.android.com/static/images/social/android-developers.png">
  <meta property="og:image:width" content="1200">
  <meta property="og:image:height" content="675"><meta property="og:locale" content="en"><meta name="twitter:card" content="summary_large_image">
  
  
      
  
  
  
  




    
      <link rel="stylesheet" href="/extras.css"></head>
  <body class=""
        template="page"
        theme="android-theme"
        type="reference"
        
        
        
        layout="docs"
        
        
        
        
        display-toc
        pending>
    <devsite-progress type="indeterminate" id="app-progress"></devsite-progress>
  
    <section class="devsite-wrapper">
      <section id="gc-wrapper">
        <main role="main" class="devsite-main-content"
            
              has-book-nav
              has-sidebar
            >
          
          
          <div class="devsite-sidebar">
            <div class="devsite-sidebar-content">
                
                <devsite-toc class="devsite-nav"
                            role="navigation"
                            aria-label="On this page"
                            depth="2"
                            scrollbars
                  ></devsite-toc>
                <devsite-recommendations-sidebar class="nocontent devsite-nav">
                </devsite-recommendations-sidebar>
            </div>
          </div>
          
          <devsite-content>
            
              











<article class="devsite-article"><style>
      /* Styles inlined from /assets/css/reference-docs.css */
:root {
  --primary-font-family: Google Sans Text, Noto Sans, Noto Sans JP,
    Noto Sans KR, Noto Naskh Arabic, Noto Sans Thai, Noto Sans Hebrew,
    Noto Sans Bengali, sans-serif;
}

/* the "added in" info on all APIs */
.api-level {
  float: right;
  font-size: smaller;
  margin-top: -40px;
}

/* the "added in" block at the top of the page */
#api-info-block .api-level {
  margin-top: 0;
}

/* The metadata block displayed at the top of the page and on
   methods/functions. Used by Dackka */
#metadata-info-block {
  font-size: smaller;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#header-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* The version metadata block contains "Added in" and "Deprecated in" lines,
   which should both be right-aligned. Used by Dackka. */
#version-metadata > div {
  text-align: end;
}

/* The block containing a method name and its associated metadata. Used by
   Dackka */
.api-name-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between;

  /* These margins reflect the margins set for non-Dackka generated refdocs */
  margin-top: 60px;
  margin-bottom: 16px;
}

/* The block next to a method / function name in the details section that
   displays the platform icons and the metadata block. Used by Dackka */
.api-name-platform-and-metadata {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
}

/* The platform icons that are displayed next to a method / function name in the
   details section. Used by Dackka */
.api-name-platform-icons {
  display: flex;
}

/* Zero out the top and bottom margins of the h3 contained in api-name-block;
   these margins are set in [the parent] .api-name-block div, since that also
   contains additional information that needs to be aligned with the h3. */
.api-name-block h3 {
  margin-top: 0;
  margin-bottom: 0;
}

@media screen and (max-width: 1000px) {
  .api-level {
    float: none;
    margin-top: 0;
  }
  #api-info-block .api-level {
    margin-bottom: 20px;
  }
}

.api-level a,
.api-level a:active,
.api-level a:visited {
  color: #222;
}

.api-level a:hover {
  color: #888;
}

/* This element is obsolete now that devsite provides TOC */
#api-info-block .sum-details-links {
  display: none;
}


/* The table that shows this class's inheritance tree */

.jd-inheritance-table tr,
.jd-inheritance-table tr td {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

.jd-inheritance-table .jd-inheritance-space {
  width: 2em;
}

/* The devsite expandable widget */

.expand-control:not(button):not(.button) {
  color: inherit;
  cursor: pointer;
  padding-left: 24px;
  position: relative;
}

.expand-control::before {
  background: url(/images/styles/disclosure_down.png) no-repeat center center;
  background-size: 34px 34px;
  color: transparent;
  content: '';
  display: block;
  height: 20px;
  left: 0;
  position: absolute;
  width: 20px;
}

.expand-control.exw-expanded::before {
  background: url(/images/styles/disclosure_up.png) no-repeat center center;
}

/* Known subclasses list */

.jd-sumtable-subclasses #subclasses-direct,
.jd-sumtable-subclasses #subclasses-indirect {
  /* left margin matches width of the toggle image,
     so this section aligns with the text above */
  margin: 0 0 0 24px;
}

.jd-sumtable-subclasses .expand-control.exw-expanded + .showalways {
  /* Hide the comma list when expanded to show the table */
  display: none;
}

.jd-sumtable-subclasses tr,
.jd-sumtable-subclasses td {
  background-color: transparent;
  border: none;
  margin: 0;
  padding: 0;
}

#subclasses-direct-summary,
#subclasses-indirect-summary {
  padding-left: 24px;
}

.jd-sumtable-expando td {
  border: solid 1px #ddd;
  padding: 4px;
}

.jd-inherited-apis .exw-expanded-content {
  /* Force override for some lengthy devsite style selectors */
  padding-left: 24px !important;
  margin-top: 12px !important;
}


/* Styles for legacy doclava HTML that uses custom expando.
 * The list of direct/indirect subclasses does not expand at all,
 * and the list of inherited members/methods is expanded by default. */

.jd-sumtable-subclasses #subclasses-direct-list,
.jd-sumtable-subclasses #subclasses-indirect-list {
  /* Force line-wraps for CSVs with no spaces */
  word-break: break-word;
}

:not(devsite-expandable) > #subclasses-direct-summary,
:not(devsite-expandable) > #subclasses-indirect-summary {
  display: none !important;
}

.jd-sumtable #subclasses-direct.jd-expando-trigger,
.jd-sumtable #subclasses-indirect.jd-expando-trigger{
  margin: 0;
}


/* Force the broken legacy expandos into something that looks WAI */

.jd-expando-trigger {
  display: inline-block;
  height: 0;
  margin: 0;
  padding-top: 10px;
  width: 24px;
}

.jd-expando-trigger img {
  /* display: none; */
  height: inherit;
}

.jd-expando-trigger ~ div > div {
  display: block !important; /* Force all inline-hidden divs to appear */
}

table.responsive td td:first-child,
table.responsive td tr:last-child td,
table.responsive td tr:first-child td{
  padding: 7px 8px 8px;
}

.data-reference-resources-wrapper {
  display: none;
}

#lattrs td:first-child,
.inhtable td:first-child {
  white-space: nowrap;
}

#lattrs td+td,
.inhtable td+td {
  white-space: normal;
}


/* Styles to highlight the preview APIs.

   These must be updated with each letter-appropriate preview. */

/* Style headings to gold preview color */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) h3,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) h3,
[data-version-added="UpsideDownCake"] .api-title,
.apilevel-UpsideDownCake h3 {
  color: #f5ba15;
}

/* Style "Added in ___" links to gold preview color */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) .api-level a,
body.apilevel-UpsideDownCake #api-info-block .api-level a,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) .api-level a,
#api-info-block .api-level a[data-version-added="UpsideDownCake"],
.api-level a[data-version-added="UpsideDownCake"],
.apilevel-UpsideDownCake .api-level a {
  color: #f5ba15 !important;
  font-size: 14px;
  font-weight:900;
}

/* Clear backgrounds for table rows */
#jd-content:not(.devsite-future-version) tr.apilevel-UpsideDownCake:not(.devsite-future-version),
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) tr,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr.apilevel-UpsideDownCake:not(.devsite-future-version),
body.apilevel-UpsideDownCake #jd-content table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr,
#jd-content:not(.devsite-future-version) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version),
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) tr,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version),
#jd-content[data-version-added="UpsideDownCake"] table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr {
  background: none;
}

/* Add gold preview background color to table headings and cells */
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) .apilevel-UpsideDownCake:not(.devsite-future-version) th,
body.apilevel-UpsideDownCake #jd-content:not(.devsite-future-version) table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr:not(.devsite-future-version) td,
body.apilevel-UpsideDownCake #jd-content:not(.devsite-future-version) th,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) th,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) tr:not(.devsite-future-version) td,
#jd-content[data-version-added="UpsideDownCake"]:not(.devsite-future-version) th {
  background: rgba(245, 185, 16, .2);
}

/* Add gold preview background color to additional table cells */
#jd-content:not(.devsite-future-version) tr.apilevel-UpsideDownCake:not(.devsite-future-version) td,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) .apilevel-UpsideDownCake:not(.devsite-future-version) td,
#jd-content:not(.devsite-future-version) tr[data-version-added="UpsideDownCake"]:not(.devsite-future-version) td,
table:not(.jd-inheritance-table):not(.jd-sumtable-subclasses) [data-version-added="UpsideDownCake"]:not(.devsite-future-version) td {
  background: rgba(245, 185, 16, .2);
}

/* End of styles to highlight the preview APIs */


/* Misc styles used in the reference */

h1.api-title {
  margin-bottom: 0;
}

h2.api-section:not(#summary) {
  margin-top: 60px;
  margin-bottom: -20px;
}

h3.api-name {
  margin-top: 60px;
}

.nolist, .nolist ul, .nolist ol {
  list-style: none;
  padding-left: 0;
}

table.inhtable>tbody>tr>td {
  padding-left: 0;
}

table.inhtable>tbody>tr>td div:first-of-type {
  padding-left: 12px;
}

.api-item {
  position: relative;
}

.api-item > .api-name {
  padding-right: 80px;
}

.api-item > .kotlin-platform {
  inset-inline-end: 0;
  position: absolute;
  top: 0;
}

.kotlin-platform {
  background: #ebf7fe;
  border-radius: 16px;
  color: #1769e0;
  display: inline-block;
  font: 500 12px / 32px var(--primary-font-family);
  height: 32px;
  text-align: center;
  width: 32px;
}

      </style>
  
  
  
  

  <div class="devsite-article-meta nocontent" role="navigation">
    
    
    <ul class="devsite-breadcrumb-list"
  
    aria-label="Breadcrumb">
  
  <li class="devsite-breadcrumb-item
             ">
    
    
    
      
  <a href="https://developer.android.com/"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="1"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="1"
      
        track-metadata-eventdetail="Android Developers"
      
    >
    
        Android Developers
      
  </a>
  
    
  </li>
  
  <li class="devsite-breadcrumb-item
             ">
    
      
      <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
    
    
    
      
  <a href="https://developer.android.com/develop"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="2"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="2"
      
        track-metadata-eventdetail=""
      
    >
    
        Develop
      
  </a>
  
    
  </li>
  
  <li class="devsite-breadcrumb-item
             ">
    
      
      <div class="devsite-breadcrumb-guillemet material-icons" aria-hidden="true"></div>
    
    
    
      
  <a href="https://developer.android.com/reference"
      
        class="devsite-breadcrumb-link gc-analytics-event"
      
        data-category="Site-Wide Custom Events"
      
        data-label="Breadcrumbs"
      
        data-value="3"
      
        track-type="globalNav"
      
        track-name="breadcrumb"
      
        track-metadata-position="3"
      
        track-metadata-eventdetail=""
      
    >
    
        Reference
      
  </a>
  
    
  </li>
  
</ul>
    
      
    <devsite-thumb-rating position="header">
    </devsite-thumb-rating>
  
    
  </div>
  <devsite-feature-tooltip
          ack-key="AckCollectionsBookmarkTooltipDismiss"
          analytics-category="Site-Wide Custom Events"
          analytics-action-show="Callout Profile displayed"
          analytics-action-close="Callout Profile dismissed"
          analytics-label="Create Collection Callout"
          class="devsite-page-bookmark-tooltip nocontent"
          dismiss-button="true"
          id="devsite-collections-dropdown"

          
          dismiss-button-text="Dismiss"

          
          close-button-text="Got it">

        
        <devsite-bookmark></devsite-bookmark>

        <span slot="popout-heading">
          
          Stay organized with collections
        </span>
        <span slot="popout-contents">
          
          Save and categorize content based on your preferences.
        </span>
      </devsite-feature-tooltip>
    
  

  <devsite-toc class="devsite-nav"
    depth="2"
    devsite-toc-embedded
    >
  </devsite-toc>
  
    
    <devsite-recommendations-dropdown class="nocontent"></devsite-recommendations-dropdown>
    
  

  






<div class="devsite-article-body clearfix
  devsite-no-page-title">

  
    

<div itemscope itemtype="http://developers.google.com/ReferenceObject">
<!-- This DIV closes at the end of the BODY -->
  <meta itemprop="name" content="android.accounts.AccountAuthenticatorActivity" />
  <meta itemprop="path" content="Deprecated" />



<div id="naMessage"></div>

<div id="api-info-block">
<div class="api-level">
  
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 5</a>
  <br>Deprecated in
    <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level
      30</a>
  
  
  
  

</div>



  
   
  
  
   
  
  
   
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
   
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  

  
   
  
  
   
  
  
  

  
   
  
  
  
  

  
   
  
  
  
  


<div class="sum-details-links">

Summary:






  <a href="#inhconstants">Inherited Constants</a>
  



  &#124; <a href="#inhfields">Inherited Fields</a>
  


  &#124; <a href="#pubctors">Ctors</a>
  



  &#124; <a href="#pubmethods">Methods</a>
  


  &#124; <a href="#promethods">Protected Methods</a>
  


  &#124; <a href="#inhmethods">Inherited Methods</a>


</div><!-- end sum-details-links -->
</div><!-- end api-info-block -->

<div id="jd-content" data-version-added="5" data-version-deprecated="30" >

<!-- ======== START OF CLASS DATA ======== -->

<h1 class="api-title" id="accountauthenticatoractivity" data-text="AccountAuthenticatorActivity">AccountAuthenticatorActivity</h1>




























<div style="font-size:medium; margin-bottom:40px; border-top:1px solid black;"
     class="nocontent">
<div style="float:right">



<a href="/reference/kotlin/android/accounts/AccountAuthenticatorActivity" title="View this page in Kotlin" >Kotlin</a>
<span style="color: #ddd; padding: 0em .5em;">|</span><span style="color: black; font-weight:bold">Java</span>


</div>
</div>




<p>
<code class="api-signature" translate="no" dir="ltr">
  public
  
  
  
  class
  AccountAuthenticatorActivity
</code>
<br>


<code class="api-signature" translate="no" dir="ltr">
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
    extends <a href="/reference/android/app/Activity">Activity</a>
  
  
  
</code>

<code class="api-signature" translate="no" dir="ltr">
  
  
  
</code>

</p><table class="jd-inheritance-table">


  <tr>
    
    <td colspan="6" class="jd-inheritance-class-cell"><a href="/reference/java/lang/Object">java.lang.Object</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="5" class="jd-inheritance-class-cell"><a href="/reference/android/content/Context">android.content.Context</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="4" class="jd-inheritance-class-cell"><a href="/reference/android/content/ContextWrapper">android.content.ContextWrapper</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="3" class="jd-inheritance-class-cell"><a href="/reference/android/view/ContextThemeWrapper">android.view.ContextThemeWrapper</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="2" class="jd-inheritance-class-cell"><a href="/reference/android/app/Activity">android.app.Activity</a>
    </td>
  </tr>
  

  <tr>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;</td>
    
      <td class="jd-inheritance-space">&nbsp;&nbsp;&nbsp;&#x21b3;</td>
    
    <td colspan="1" class="jd-inheritance-class-cell">android.accounts.AccountAuthenticatorActivity
    </td>
  </tr>
  

</table>
  

    

<br><hr><p>
  <p class="caution"><strong>
      This class was deprecated
      in API level 30.</strong><br/>
    Applications should extend Activity themselves. This class is not compatible with
   AppCompat, and the functionality it provides is not complex.
  </p>


  <p>Base class for implementing an Activity that is used to help implement an
 AbstractAccountAuthenticator. If the AbstractAccountAuthenticator needs to use an activity
 to handle the request then it can have the activity extend AccountAuthenticatorActivity.
 The AbstractAccountAuthenticator passes in the response to the intent using the following:
 <pre translate="no" dir="ltr">
      intent.putExtra(<code translate="no" dir="ltr"><a href="/reference/android/accounts/AccountManager#KEY_ACCOUNT_AUTHENTICATOR_RESPONSE">AccountManager#KEY_ACCOUNT_AUTHENTICATOR_RESPONSE</a></code>, response);
 </pre>
 The activity then sets the result that is to be handed to the response via
 <code translate="no" dir="ltr"><a href="/reference/android/accounts/AccountAuthenticatorActivity#setAccountAuthenticatorResult(android.os.Bundle)">setAccountAuthenticatorResult(android.os.Bundle)</a></code>.
 This result will be sent as the result of the request when the activity finishes. If this
 is never set or if it is set to null then error <code translate="no" dir="ltr"><a href="/reference/android/accounts/AccountManager#ERROR_CODE_CANCELED">AccountManager#ERROR_CODE_CANCELED</a></code>
 will be called on the response.</p>









<h2 class="api-section" id="summary" data-text="Summary">Summary</h2>
















<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="inhconstants" class="responsive constants inhtable">
<tr><th><h3 id="inherited-constants" data-text="Inherited constants">Inherited constants</h3></th></tr>


  <tr  >
  <td>
    <div class="expandable jd-inherited-apis">
      <span class="expand-control">From class
        <code translate="no" dir="ltr"><a href="/reference/android/app/Activity">android.app.Activity</a></code>
      </span>
      <table class="responsive">
        

    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#DEFAULT_KEYS_DIALER">DEFAULT_KEYS_DIALER</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to launch the dialer during default
 key handling.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#DEFAULT_KEYS_DISABLE">DEFAULT_KEYS_DISABLE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to turn off default handling of
 keys.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#DEFAULT_KEYS_SEARCH_GLOBAL">DEFAULT_KEYS_SEARCH_GLOBAL</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start a global search (typically web search, but some platforms may define alternate
 methods for global search)

 <p>See <code translate="no" dir="ltr"><a href="/reference/android/app/SearchManager">android.app.SearchManager</a></code> for more details.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#DEFAULT_KEYS_SEARCH_LOCAL">DEFAULT_KEYS_SEARCH_LOCAL</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to specify that unhandled keystrokes
 will start an application-defined search.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#DEFAULT_KEYS_SHORTCUT">DEFAULT_KEYS_SHORTCUT</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode(int)</a></code> to execute a menu shortcut in
 default key handling.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#FULLSCREEN_MODE_REQUEST_ENTER">FULLSCREEN_MODE_REQUEST_ENTER</a></code>
          <p>Request type of <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#requestFullscreenMode(int,%20android.os.OutcomeReceiver<java.lang.Void,java.lang.Throwable>)">requestFullscreenMode(int, android.os.OutcomeReceiver)</a></code>, to request enter
  fullscreen mode from multi-window mode.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#FULLSCREEN_MODE_REQUEST_EXIT">FULLSCREEN_MODE_REQUEST_EXIT</a></code>
          <p>Request type of <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#requestFullscreenMode(int,%20android.os.OutcomeReceiver<java.lang.Void,java.lang.Throwable>)">requestFullscreenMode(int, android.os.OutcomeReceiver)</a></code>, to request exiting the
  requested fullscreen mode and restore to the previous multi-window mode.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#OVERRIDE_TRANSITION_CLOSE">OVERRIDE_TRANSITION_CLOSE</a></code>
          <p>Request type of <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int)">overrideActivityTransition(int, int, int)</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int,%20int)">overrideActivityTransition(int, int, int, int)</a></code>, to override the
 closing transition.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#OVERRIDE_TRANSITION_OPEN">OVERRIDE_TRANSITION_OPEN</a></code>
          <p>Request type of <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int)">overrideActivityTransition(int, int, int)</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int,%20int)">overrideActivityTransition(int, int, int, int)</a></code>, to override the
 opening transition.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#RESULT_CANCELED">RESULT_CANCELED</a></code>
          <p>Standard activity result: operation canceled.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#RESULT_FIRST_USER">RESULT_FIRST_USER</a></code>
          <p>Start of user-defined activity results.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#RESULT_OK">RESULT_OK</a></code>
          <p>Standard activity result: operation succeeded.
          
    
</p>
        </td>
    </tr>
    
    

      </table>
    </div>
  </td></tr>







  <tr  >
  <td>
    <div class="expandable jd-inherited-apis">
      <span class="expand-control">From class
        <code translate="no" dir="ltr"><a href="/reference/android/content/Context">android.content.Context</a></code>
      </span>
      <table class="responsive">
        

    
    <tr data-version-added="4" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#ACCESSIBILITY_SERVICE">ACCESSIBILITY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/accessibility/AccessibilityManager">AccessibilityManager</a></code> for giving the user
 feedback for UI events through the registered event listeners.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="5" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#ACCOUNT_SERVICE">ACCOUNT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/accounts/AccountManager">AccountManager</a></code> for receiving intents at a
 time of your choosing.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#ACTIVITY_SERVICE">ACTIVITY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/ActivityManager">ActivityManager</a></code> for interacting with the global
 system state.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#ALARM_SERVICE">ALARM_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/AlarmManager">AlarmManager</a></code> for receiving intents at a
 time of your choosing.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#APPWIDGET_SERVICE">APPWIDGET_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/appwidget/AppWidgetManager">AppWidgetManager</a></code> for accessing AppWidgets.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="19" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#APP_OPS_SERVICE">APP_OPS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/AppOpsManager">AppOpsManager</a></code> for tracking application operations
 on the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#APP_SEARCH_SERVICE">APP_SEARCH_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve an
 <code translate="no" dir="ltr"><a href="/reference/android/app/appsearch/AppSearchManager">AppSearchManager</a></code> for
 indexing and querying app data managed by the system.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#AUDIO_SERVICE">AUDIO_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/AudioManager">AudioManager</a></code> for handling management of volume,
 ringer modes and audio routing.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BATTERY_SERVICE">BATTERY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/BatteryManager">BatteryManager</a></code> for managing battery state.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_ABOVE_CLIENT">BIND_ABOVE_CLIENT</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: indicates that the client application
 binding to this service considers the service to be more important than
 the app itself.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_ADJUST_WITH_ACTIVITY">BIND_ADJUST_WITH_ACTIVITY</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: If binding from an activity, allow the
 target service's process importance to be raised based on whether the
 activity is visible to the user, regardless whether another flag is
 used to reduce the amount that the client process's overall importance
 is used to impact it.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_ALLOW_ACTIVITY_STARTS">BIND_ALLOW_ACTIVITY_STARTS</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: If binding from an app that is visible, the bound service is
 allowed to start an activity from background.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_ALLOW_OOM_MANAGEMENT">BIND_ALLOW_OOM_MANAGEMENT</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: allow the process hosting the bound
 service to go through its normal memory management.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_AUTO_CREATE">BIND_AUTO_CREATE</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: automatically create the service as long
 as the binding exists.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_DEBUG_UNBIND">BIND_DEBUG_UNBIND</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: include debugging help for mismatched
 calls to unbind.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="24" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_EXTERNAL_SERVICE">BIND_EXTERNAL_SERVICE</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: The service being bound is an
 <code translate="no" dir="ltr"><a href="/reference/android/R.attr#isolatedProcess">isolated</a></code>,
 <code translate="no" dir="ltr"><a href="/reference/android/R.attr#externalService">external</a></code> service.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">long</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_EXTERNAL_SERVICE_LONG">BIND_EXTERNAL_SERVICE_LONG</a></code>
          <p>Works in the same way as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_EXTERNAL_SERVICE">BIND_EXTERNAL_SERVICE</a></code>, but it's defined as a (@code long)
 value that is compatible to <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags">BindServiceFlags</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_IMPORTANT">BIND_IMPORTANT</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: this service is very important to
 the client, so should be brought to the foreground process level
 when the client is.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="29" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_INCLUDE_CAPABILITIES">BIND_INCLUDE_CAPABILITIES</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: If binding from an app that has specific capabilities
 due to its foreground state such as an activity or foreground service, then this flag will
 allow the bound app to get the same capabilities, as long as it has the required permissions
 as well.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="8" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_NOT_FOREGROUND">BIND_NOT_FOREGROUND</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: don't allow this binding to raise
 the target service's process to the foreground scheduling priority.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="29" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_NOT_PERCEPTIBLE">BIND_NOT_PERCEPTIBLE</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: If binding from an app that is visible or user-perceptible,
 lower the target service's importance to below the perceptible level.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_SHARED_ISOLATED_PROCESS">BIND_SHARED_ISOLATED_PROCESS</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindIsolatedService(Intent, BindServiceFlags, String, Executor, ServiceConnection)</a></code>: Bind the service into a shared isolated process.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIND_WAIVE_PRIORITY">BIND_WAIVE_PRIORITY</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>: don't impact the scheduling or
 memory management priority of the target service's hosting process.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="29" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BIOMETRIC_SERVICE">BIOMETRIC_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/biometrics/BiometricManager">BiometricManager</a></code> for handling
 biometric and PIN/pattern/password authentication.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="30" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BLOB_STORE_SERVICE">BLOB_STORE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/blob/BlobStoreManager">BlobStoreManager</a></code> for contributing and accessing data blobs
 from the blob store maintained by the system.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="18" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BLUETOOTH_SERVICE">BLUETOOTH_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/bluetooth/BluetoothManager">BluetoothManager</a></code> for using Bluetooth.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#BUGREPORT_SERVICE">BUGREPORT_SERVICE</a></code>
          <p>Service to capture a bugreport.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CAMERA_SERVICE">CAMERA_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/camera2/CameraManager">CameraManager</a></code> for interacting with
 camera devices.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="19" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CAPTIONING_SERVICE">CAPTIONING_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/accessibility/CaptioningManager">CaptioningManager</a></code> for obtaining
 captioning properties and listening for changes in captioning
 preferences.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="23" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CARRIER_CONFIG_SERVICE">CARRIER_CONFIG_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/telephony/CarrierConfigManager">CarrierConfigManager</a></code> for reading carrier configuration values.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CLIPBOARD_SERVICE">CLIPBOARD_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/content/ClipboardManager">ClipboardManager</a></code> for accessing and modifying
 the contents of the global clipboard.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="26" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#COMPANION_DEVICE_SERVICE">COMPANION_DEVICE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/companion/CompanionDeviceManager">CompanionDeviceManager</a></code> for managing companion devices
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="30" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONNECTIVITY_DIAGNOSTICS_SERVICE">CONNECTIVITY_DIAGNOSTICS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/ConnectivityDiagnosticsManager">ConnectivityDiagnosticsManager</a></code> for performing network connectivity diagnostics
 as well as receiving network connectivity information from the system.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONNECTIVITY_SERVICE">CONNECTIVITY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/ConnectivityManager">ConnectivityManager</a></code> for handling management of
 network connections.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="19" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONSUMER_IR_SERVICE">CONSUMER_IR_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/ConsumerIrManager">ConsumerIrManager</a></code> for transmitting infrared
 signals from the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONTEXT_IGNORE_SECURITY">CONTEXT_IGNORE_SECURITY</a></code>
          <p>Flag for use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#createPackageContext(java.lang.String,%20int)">createPackageContext(String, int)</a></code>: ignore any security
 restrictions on the Context being requested, allowing it to always
 be loaded.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONTEXT_INCLUDE_CODE">CONTEXT_INCLUDE_CODE</a></code>
          <p>Flag for use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#createPackageContext(java.lang.String,%20int)">createPackageContext(String, int)</a></code>: include the application
 code with the context.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="4" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CONTEXT_RESTRICTED">CONTEXT_RESTRICTED</a></code>
          <p>Flag for use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#createPackageContext(java.lang.String,%20int)">createPackageContext(String, int)</a></code>: a restricted context may
 disable specific features.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CREDENTIAL_SERVICE">CREDENTIAL_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/credentials/CredentialManager">CredentialManager</a></code> to authenticate a user to your app.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="28" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#CROSS_PROFILE_APPS_SERVICE">CROSS_PROFILE_APPS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/content/pm/CrossProfileApps">CrossProfileApps</a></code> for cross profile operations.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DEVICE_ID_DEFAULT">DEVICE_ID_DEFAULT</a></code>
          <p>The default device ID, which is the ID of the primary (non-virtual) device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DEVICE_ID_INVALID">DEVICE_ID_INVALID</a></code>
          <p>Invalid device ID.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DEVICE_LOCK_SERVICE">DEVICE_LOCK_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/devicelock/DeviceLockManager">DeviceLockManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="8" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DEVICE_POLICY_SERVICE">DEVICE_POLICY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/admin/DevicePolicyManager">DevicePolicyManager</a></code> for working with global
 device policy management.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DISPLAY_HASH_SERVICE">DISPLAY_HASH_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to access
 <code translate="no" dir="ltr"><a href="/reference/android/view/displayhash/DisplayHashManager">DisplayHashManager</a></code> to handle display hashes.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="17" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DISPLAY_SERVICE">DISPLAY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/display/DisplayManager">DisplayManager</a></code> for interacting with display devices.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DOMAIN_VERIFICATION_SERVICE">DOMAIN_VERIFICATION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to access
 <code translate="no" dir="ltr"><a href="/reference/android/content/pm/verify/domain/DomainVerificationManager">DomainVerificationManager</a></code> to retrieve approval and
 user state for declared web domains.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="9" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DOWNLOAD_SERVICE">DOWNLOAD_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/DownloadManager">DownloadManager</a></code> for requesting HTTP downloads.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="8" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#DROPBOX_SERVICE">DROPBOX_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/DropBoxManager">DropBoxManager</a></code> instance for recording
 diagnostic logs.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="28" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#EUICC_SERVICE">EUICC_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/telephony/euicc/EuiccManager">EuiccManager</a></code> to manage the device eUICC (embedded SIM).
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="30" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#FILE_INTEGRITY_SERVICE">FILE_INTEGRITY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve an
 <code translate="no" dir="ltr"><a href="/reference/android/security/FileIntegrityManager">FileIntegrityManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="23" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#FINGERPRINT_SERVICE">FINGERPRINT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/fingerprint/FingerprintManager">FingerprintManager</a></code> for handling management
 of fingerprints.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#GAME_SERVICE">GAME_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/GameManager">GameManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#GRAMMATICAL_INFLECTION_SERVICE">GRAMMATICAL_INFLECTION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/GrammaticalInflectionManager">GrammaticalInflectionManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="24" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#HARDWARE_PROPERTIES_SERVICE">HARDWARE_PROPERTIES_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/HardwarePropertiesManager">HardwarePropertiesManager</a></code> for accessing the hardware properties service.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#HEALTHCONNECT_SERVICE">HEALTHCONNECT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/health/connect/HealthConnectManager">HealthConnectManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="3" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#INPUT_METHOD_SERVICE">INPUT_METHOD_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/inputmethod/InputMethodManager">InputMethodManager</a></code> for accessing input
 methods.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#INPUT_SERVICE">INPUT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/hardware/input/InputManager">InputManager</a></code> for interacting with input devices.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="28" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#IPSEC_SERVICE">IPSEC_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/net/IpSecManager">IpSecManager</a></code> for encrypting Sockets or Networks with
 IPSec.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#JOB_SCHEDULER_SERVICE">JOB_SCHEDULER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/job/JobScheduler">JobScheduler</a></code> instance for managing occasional
 background tasks.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#KEYGUARD_SERVICE">KEYGUARD_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/KeyguardManager">KeyguardManager</a></code> for controlling keyguard.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#LAUNCHER_APPS_SERVICE">LAUNCHER_APPS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/content/pm/LauncherApps">LauncherApps</a></code> for querying and monitoring launchable apps across
 profiles of a user.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#LAYOUT_INFLATER_SERVICE">LAYOUT_INFLATER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/LayoutInflater">LayoutInflater</a></code> for inflating layout resources in this
 context.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="33" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#LOCALE_SERVICE">LOCALE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/LocaleManager">LocaleManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#LOCATION_SERVICE">LOCATION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/location/LocationManager">LocationManager</a></code> for controlling location
 updates.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MEDIA_COMMUNICATION_SERVICE">MEDIA_COMMUNICATION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/MediaCommunicationManager">MediaCommunicationManager</a></code>
 for managing <code translate="no" dir="ltr"><a href="/reference/android/media/MediaSession2">MediaSession2</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MEDIA_METRICS_SERVICE">MEDIA_METRICS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/metrics/MediaMetricsManager">MediaMetricsManager</a></code> for interacting with media metrics
 on the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MEDIA_PROJECTION_SERVICE">MEDIA_PROJECTION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/media/projection/MediaProjectionManager">MediaProjectionManager</a></code> instance for managing
 media projection sessions.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MEDIA_ROUTER_SERVICE">MEDIA_ROUTER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.Class<T>)">getSystemService(Class)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/MediaRouter">MediaRouter</a></code> for controlling and managing
 routing of media.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MEDIA_SESSION_SERVICE">MEDIA_SESSION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/session/MediaSessionManager">MediaSessionManager</a></code> for managing media Sessions.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="23" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MIDI_SERVICE">MIDI_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/midi/MidiManager">MidiManager</a></code> for accessing the MIDI service.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_APPEND">MODE_APPEND</a></code>
          <p>File creation mode: for use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput(String, int)</a></code>, if the file
 already exists then write data to the end of the existing file
 instead of erasing it.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_ENABLE_WRITE_AHEAD_LOGGING">MODE_ENABLE_WRITE_AHEAD_LOGGING</a></code>
          <p>Database open flag: when set, the database is opened with write-ahead
 logging enabled by default.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="11" data-version-deprecated="23" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_MULTI_PROCESS">MODE_MULTI_PROCESS</a></code>
          <p><em>
      This constant was deprecated
      in API level 23.
    MODE_MULTI_PROCESS does not work reliably in
 some versions of Android, and furthermore does not provide any
 mechanism for reconciling concurrent modifications across
 processes.  Applications should not attempt to use it.  Instead,
 they should use an explicit cross-process data management
 approach such as <code translate="no" dir="ltr"><a href="/reference/android/content/ContentProvider">ContentProvider</a></code>.</em>
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="24" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_NO_LOCALIZED_COLLATORS">MODE_NO_LOCALIZED_COLLATORS</a></code>
          <p>Database open flag: when set, the database is opened without support for
 localized collators.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_PRIVATE">MODE_PRIVATE</a></code>
          <p>File creation mode: the default mode, where the created file can only
 be accessed by the calling application (or all applications sharing the
 same user ID).
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" data-version-deprecated="17" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_WORLD_READABLE">MODE_WORLD_READABLE</a></code>
          <p><em>
      This constant was deprecated
      in API level 17.
    Creating world-readable files is very dangerous, and likely
             to cause security holes in applications. It is strongly
             discouraged; instead, applications should use more formal
             mechanism for interactions such as <code translate="no" dir="ltr"><a href="/reference/android/content/ContentProvider">ContentProvider</a></code>,
             <code translate="no" dir="ltr"><a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a></code>, and <code translate="no" dir="ltr"><a href="/reference/android/app/Service">Service</a></code>.
             There are no guarantees that this access mode will remain on
             a file, such as when it goes through a backup and restore.</em>
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" data-version-deprecated="17" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#MODE_WORLD_WRITEABLE">MODE_WORLD_WRITEABLE</a></code>
          <p><em>
      This constant was deprecated
      in API level 17.
    Creating world-writable files is very dangerous, and likely
             to cause security holes in applications. It is strongly
             discouraged; instead, applications should use more formal
             mechanism for interactions such as <code translate="no" dir="ltr"><a href="/reference/android/content/ContentProvider">ContentProvider</a></code>,
             <code translate="no" dir="ltr"><a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a></code>, and <code translate="no" dir="ltr"><a href="/reference/android/app/Service">Service</a></code>.
             There are no guarantees that this access mode will remain on
             a file, such as when it goes through a backup and restore.</em>
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="23" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#NETWORK_STATS_SERVICE">NETWORK_STATS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/usage/NetworkStatsManager">NetworkStatsManager</a></code> for querying network usage stats.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="10" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#NFC_SERVICE">NFC_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/nfc/NfcManager">NfcManager</a></code> for using NFC.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#NOTIFICATION_SERVICE">NOTIFICATION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/NotificationManager">NotificationManager</a></code> for informing the user of
 background events.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#NSD_SERVICE">NSD_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/nsd/NsdManager">NsdManager</a></code> for handling management of network service
 discovery
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#OVERLAY_SERVICE">OVERLAY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/content/om/OverlayManager">OverlayManager</a></code> for managing overlay packages.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#PEOPLE_SERVICE">PEOPLE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to access a <code translate="no" dir="ltr"><a href="/reference/android/app/people/PeopleManager">PeopleManager</a></code> to interact
 with your published conversations.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#PERFORMANCE_HINT_SERVICE">PERFORMANCE_HINT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/PerformanceHintManager">PerformanceHintManager</a></code> for accessing the performance hinting service.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#POWER_SERVICE">POWER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/PowerManager">PowerManager</a></code> for controlling power management,
 including "wake locks," which let you keep the device on while
 you're running long tasks.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="19" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#PRINT_SERVICE">PRINT_SERVICE</a></code>
          <p><code translate="no" dir="ltr"><a href="/reference/android/print/PrintManager">PrintManager</a></code> for printing and managing
 printers and print tasks.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="33" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#RECEIVER_EXPORTED">RECEIVER_EXPORTED</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)">registerReceiver(BroadcastReceiver, IntentFilter)</a></code>: The receiver can receive broadcasts from other Apps.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="33" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#RECEIVER_NOT_EXPORTED">RECEIVER_NOT_EXPORTED</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)">registerReceiver(BroadcastReceiver, IntentFilter)</a></code>: The receiver cannot receive broadcasts from other Apps.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="26" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#RECEIVER_VISIBLE_TO_INSTANT_APPS">RECEIVER_VISIBLE_TO_INSTANT_APPS</a></code>
          <p>Flag for <code translate="no" dir="ltr"><a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)">registerReceiver(BroadcastReceiver, IntentFilter)</a></code>: The receiver can receive broadcasts from Instant Apps.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#RESTRICTIONS_SERVICE">RESTRICTIONS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/content/RestrictionsManager">RestrictionsManager</a></code> for retrieving application restrictions
 and requesting permissions for restricted operations.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="29" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#ROLE_SERVICE">ROLE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/role/RoleManager">RoleManager</a></code>
 for managing roles.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#SEARCH_SERVICE">SEARCH_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/SearchManager">SearchManager</a></code> for handling searches.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#SENSOR_SERVICE">SENSOR_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/hardware/SensorManager">SensorManager</a></code> for accessing sensors.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="25" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#SHORTCUT_SERVICE">SHORTCUT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/content/pm/ShortcutManager">ShortcutManager</a></code> for accessing the launcher shortcut service.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="33" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#STATUS_BAR_SERVICE">STATUS_BAR_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/StatusBarManager">StatusBarManager</a></code> for interacting with the status bar and quick settings.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="9" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#STORAGE_SERVICE">STORAGE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/os/storage/StorageManager">StorageManager</a></code> for accessing system storage
 functions.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="26" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#STORAGE_STATS_SERVICE">STORAGE_STATS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/usage/StorageStatsManager">StorageStatsManager</a></code> for accessing system storage
 statistics.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="24" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#SYSTEM_HEALTH_SERVICE">SYSTEM_HEALTH_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/health/SystemHealthManager">SystemHealthManager</a></code> for accessing system health (battery, power,
 memory, etc) metrics.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TELECOM_SERVICE">TELECOM_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/telecom/TelecomManager">TelecomManager</a></code> to manage telecom-related features
 of the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="30" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TELEPHONY_IMS_SERVICE">TELEPHONY_IMS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve an
 <code translate="no" dir="ltr"><a href="/reference/android/telephony/ims/ImsManager">ImsManager</a></code>.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TELEPHONY_SERVICE">TELEPHONY_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/telephony/TelephonyManager">TelephonyManager</a></code> for handling management the
 telephony features of the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="22" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TELEPHONY_SUBSCRIPTION_SERVICE">TELEPHONY_SUBSCRIPTION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/telephony/SubscriptionManager">SubscriptionManager</a></code> for handling management the
 telephony subscriptions of the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="26" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TEXT_CLASSIFICATION_SERVICE">TEXT_CLASSIFICATION_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/textclassifier/TextClassificationManager">TextClassificationManager</a></code> for text classification services.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TEXT_SERVICES_MANAGER_SERVICE">TEXT_SERVICES_MANAGER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/textservice/TextServicesManager">TextServicesManager</a></code> for accessing
 text services.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="21" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TV_INPUT_SERVICE">TV_INPUT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/tv/TvInputManager">TvInputManager</a></code> for interacting with TV inputs
 on the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="33" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#TV_INTERACTIVE_APP_SERVICE">TV_INTERACTIVE_APP_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/media/tv/interactive/TvInteractiveAppManager">TvInteractiveAppManager</a></code> for interacting with TV
 interactive applications on the device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="8" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#UI_MODE_SERVICE">UI_MODE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/app/UiModeManager">UiModeManager</a></code> for controlling UI modes.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="22" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#USAGE_STATS_SERVICE">USAGE_STATS_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/app/usage/UsageStatsManager">UsageStatsManager</a></code> for querying device usage stats.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="12" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#USB_SERVICE">USB_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/hardware/usb/UsbManager">UsbManager</a></code> for access to USB devices (as a USB host)
 and for controlling this device's behavior as a USB device.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="17" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#USER_SERVICE">USER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/os/UserManager">UserManager</a></code> for managing users on devices that support multiple users.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#VIBRATOR_MANAGER_SERVICE">VIBRATOR_MANAGER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/os/VibratorManager">VibratorManager</a></code>
 for accessing the device vibrators, interacting with individual ones and playing synchronized
 effects on multiple vibrators.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" data-version-deprecated="31" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#VIBRATOR_SERVICE">VIBRATOR_SERVICE</a></code>
          <p><em>
      This constant was deprecated
      in API level 31.
    Use <code translate="no" dir="ltr"><a href="/reference/android/os/VibratorManager">VibratorManager</a></code> to retrieve the default system vibrator.</em>
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="34" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#VIRTUAL_DEVICE_SERVICE">VIRTUAL_DEVICE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/companion/virtual/VirtualDeviceManager">VirtualDeviceManager</a></code> for managing virtual devices.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="30" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#VPN_MANAGEMENT_SERVICE">VPN_MANAGEMENT_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/VpnManager">VpnManager</a></code> to
 manage profiles for the platform built-in VPN.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WALLPAPER_SERVICE">WALLPAPER_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 com.android.server.WallpaperService for accessing wallpapers.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="26" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WIFI_AWARE_SERVICE">WIFI_AWARE_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/net/wifi/aware/WifiAwareManager">WifiAwareManager</a></code> for handling management of
 Wi-Fi Aware.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WIFI_P2P_SERVICE">WIFI_P2P_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/wifi/p2p/WifiP2pManager">WifiP2pManager</a></code> for handling management of
 Wi-Fi peer-to-peer connections.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="28" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WIFI_RTT_RANGING_SERVICE">WIFI_RTT_RANGING_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/wifi/rtt/WifiRttManager">WifiRttManager</a></code> for ranging devices with wifi.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WIFI_SERVICE">WIFI_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a <code translate="no" dir="ltr"><a href="/reference/android/net/wifi/WifiManager">WifiManager</a></code> for handling management of
 Wi-Fi access.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="1" >
        <td><code translate="no" dir="ltr"><a href="/reference/java/lang/String">String</a></code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/Context#WINDOW_SERVICE">WINDOW_SERVICE</a></code>
          <p>Use with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService(java.lang.String)</a></code> to retrieve a
 <code translate="no" dir="ltr"><a href="/reference/android/view/WindowManager">WindowManager</a></code> for accessing the system's window
 manager.
          
    
</p>
        </td>
    </tr>
    
    

      </table>
    </div>
  </td></tr>













  <tr  >
  <td>
    <div class="expandable jd-inherited-apis">
      <span class="expand-control">From interface
        <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2">android.content.ComponentCallbacks2</a></code>
      </span>
      <table class="responsive">
        

    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_BACKGROUND">TRIM_MEMORY_BACKGROUND</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process has gone on to the
 LRU list.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_COMPLETE">TRIM_MEMORY_COMPLETE</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is nearing the end
 of the background LRU list, and if more memory isn't found soon it will
 be killed.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_MODERATE">TRIM_MEMORY_MODERATE</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is around the middle
 of the background LRU list; freeing memory can help the system keep
 other processes running later in the list for better overall performance.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_CRITICAL">TRIM_MEMORY_RUNNING_CRITICAL</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running extremely low on memory
 and is about to not be able to keep any background processes running.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_LOW">TRIM_MEMORY_RUNNING_LOW</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running low on memory.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="16" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_MODERATE">TRIM_MEMORY_RUNNING_MODERATE</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process is not an expendable
 background process, but the device is running moderately low on memory.
          
    
</p>
        </td>
    </tr>
    
    
    <tr data-version-added="14" >
        <td><code translate="no" dir="ltr">int</code></td>
        <td width="100%">
          <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_UI_HIDDEN">TRIM_MEMORY_UI_HIDDEN</a></code>
          <p>Level for <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory(int)</a></code>: the process had been showing
 a user interface, and is no longer doing so.
          
    
</p>
        </td>
    </tr>
    
    

      </table>
    </div>
  </td></tr>






</table>







<!-- =========== FIELD SUMMARY =========== -->
<table id="inhfields" class="responsive properties inhtable">
<tr><th><h3 id="inherited-fields" data-text="Inherited fields">Inherited fields</h3></th></tr>


  <tr  >
  <td>
    <div class="expandable jd-inherited-apis">
      <span class="expand-control">From class
        <code translate="no" dir="ltr"><a href="/reference/android/app/Activity">android.app.Activity</a></code>
      </span>
      <table class="responsive">
        


  <tr data-version-added="1" >
    <td><code translate="no" dir="ltr">
    protected
    static
    final
    int[]</code></td>
    <td width="100%">
      <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#FOCUSED_STATE_SET">FOCUSED_STATE_SET</a></code>
      <p>
      
    
</p>
    </td>
  </tr>
  


      </table>
    </div>
  </td></tr>
























</table>




<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<table id="pubctors" class="responsive constructors">
<tr><th colspan="2"><h3 id="public-constructors" data-text="Public constructors">Public constructors</h3></th></tr>



  <tr  >
  
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/accounts/AccountAuthenticatorActivity#AccountAuthenticatorActivity()">AccountAuthenticatorActivity</a>()
      </code>
      
    </td>
  </tr>
  


</table>






<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="responsive methods">
<tr><th colspan="2"><h3 id="public-methods" data-text="Public methods">Public methods</h3></th></tr>



  <tr data-version-added="5" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/accounts/AccountAuthenticatorActivity#finish()">finish</a>()
      </code>
      
        <p>Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/accounts/AccountAuthenticatorActivity#setAccountAuthenticatorResult(android.os.Bundle)">setAccountAuthenticatorResult</a>(<a href="/reference/android/os/Bundle">Bundle</a> result)
      </code>
      
        <p>Set the result that is to be sent as the result of the request that caused this
 Activity to be launched.
        
    
</p>
      
    </td>
  </tr>
  


</table>




<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="reponsive methods">
<tr><th colspan="2"><h3 id="protected-methods" data-text="Protected methods">Protected methods</h3></th></tr>



  <tr data-version-added="5" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/accounts/AccountAuthenticatorActivity#onCreate(android.os.Bundle)">onCreate</a>(<a href="/reference/android/os/Bundle">Bundle</a> icicle)
      </code>
      
        <p>Retrieves the AccountAuthenticatorResponse from either the intent of the icicle, if the
 icicle is non-zero.
        
    
</p>
      
    </td>
  </tr>
  


</table>





<!-- ========== METHOD SUMMARY =========== -->
<table id="inhmethods" class="responsive methods inhtable">
<tr><th><h3 id="inherited-methods" data-text="Inherited methods">Inherited methods</h3></th></tr>


<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/app/Activity">android.app.Activity</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#addContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">addContentView</a>(<a href="/reference/android/view/View">View</a> view, <a href="/reference/android/view/ViewGroup.LayoutParams">ViewGroup.LayoutParams</a> params)
      </code>
      
        <p>Add an additional content view to the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#attachBaseContext(android.content.Context)">attachBaseContext</a>(<a href="/reference/android/content/Context">Context</a> newBase)
      </code>
      
        <p>Set the base context for this ContextWrapper.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#clearOverrideActivityTransition(int)">clearOverrideActivityTransition</a>(int overrideType)
      </code>
      
        <p>Clears the animations which are set from <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int)">overrideActivityTransition(int, int, int)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="3" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#closeContextMenu()">closeContextMenu</a>()
      </code>
      
        <p>Programmatically closes the most recently opened context menu, if showing.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#closeOptionsMenu()">closeOptionsMenu</a>()
      </code>
      
        <p>Progammatically closes the options menu.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/PendingIntent">PendingIntent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#createPendingResult(int,%20android.content.Intent,%20int)">createPendingResult</a>(int requestCode, <a href="/reference/android/content/Intent">Intent</a> data, int flags)
      </code>
      
        <p>Create a new PendingIntent object which you can hand to others
 for them to use to send result data back to your
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onActivityResult(int,%20int,%20android.content.Intent)">onActivityResult(int, int, Intent)</a></code> callback.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dismissDialog(int)">dismissDialog</a>(int id)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dismissKeyboardShortcutsHelper()">dismissKeyboardShortcutsHelper</a>()
      </code>
      
        <p>Dismiss the Keyboard Shortcuts screen.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="12" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchGenericMotionEvent(android.view.MotionEvent)">dispatchGenericMotionEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> ev)
      </code>
      
        <p>Called to process generic motion events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchKeyEvent(android.view.KeyEvent)">dispatchKeyEvent</a>(<a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called to process key events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchKeyShortcutEvent(android.view.KeyEvent)">dispatchKeyShortcutEvent</a>(<a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called to process a key shortcut event.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)">dispatchPopulateAccessibilityEvent</a>(<a href="/reference/android/view/accessibility/AccessibilityEvent">AccessibilityEvent</a> event)
      </code>
      
        <p>Called to process population of <code translate="no" dir="ltr"><a href="/reference/android/view/accessibility/AccessibilityEvent">AccessibilityEvent</a></code>s.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchTouchEvent(android.view.MotionEvent)">dispatchTouchEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> ev)
      </code>
      
        <p>Called to process touch screen events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dispatchTrackballEvent(android.view.MotionEvent)">dispatchTrackballEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> ev)
      </code>
      
        <p>Called to process trackball events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#dump(java.lang.String,%20java.io.FileDescriptor,%20java.io.PrintWriter,%20java.lang.String[])">dump</a>(<a href="/reference/java/lang/String">String</a> prefix, <a href="/reference/java/io/FileDescriptor">FileDescriptor</a> fd, <a href="/reference/java/io/PrintWriter">PrintWriter</a> writer, <a href="/reference/java/lang/String">String[]</a> args)
      </code>
      
        <p>Print the Activity's state into the given stream.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#enterPictureInPictureMode(android.app.PictureInPictureParams)">enterPictureInPictureMode</a>(<a href="/reference/android/app/PictureInPictureParams">PictureInPictureParams</a> params)
      </code>
      
        <p>Puts the activity in picture-in-picture mode if possible in the current system state.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" data-version-deprecated="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#enterPictureInPictureMode()">enterPictureInPictureMode</a>()
      </code>
      
        <p>Puts the activity in picture-in-picture mode if possible in the current system state.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        &lt;T&nbsp;extends&nbsp;<a href="/reference/android/view/View">View</a>&gt;
        T</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#findViewById(int)">findViewById</a>(int id)
      </code>
      
        <p>Finds a view that was identified by the <code translate="no" dir="ltr">android:id</code> XML attribute
 that was processed in <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finish()">finish</a>()
      </code>
      
        <p>Call this when your activity is done and should be closed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishActivity(int)">finishActivity</a>(int requestCode)
      </code>
      
        <p>Force finish another activity that you had previously started with
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivityForResult(android.content.Intent,%20int)">startActivityForResult(Intent, int)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishActivityFromChild(android.app.Activity,%20int)">finishActivityFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, int requestCode)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#finishActivity(int)">finishActivity(int)</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishAffinity()">finishAffinity</a>()
      </code>
      
        <p>Finish this activity as well as all activities immediately below it
 in the current task that have the same affinity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishAfterTransition()">finishAfterTransition</a>()
      </code>
      
        <p>Reverses the Activity Scene entry Transition and triggers the calling Activity
 to reverse its exit Transition.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishAndRemoveTask()">finishAndRemoveTask</a>()
      </code>
      
        <p>Call this when your activity is done and should be closed and the task should be completely
 removed as a part of finishing the root activity of the task.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#finishFromChild(android.app.Activity)">finishFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#finish()">finish()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/ActionBar">ActionBar</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getActionBar()">getActionBar</a>()
      </code>
      
        <p>Retrieve a reference to this activity's ActionBar.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/app/Application">Application</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getApplication()">getApplication</a>()
      </code>
      
        <p>Return the application that owns this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getCallingActivity()">getCallingActivity</a>()
      </code>
      
        <p>Return the name of the activity that invoked this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getCallingPackage()">getCallingPackage</a>()
      </code>
      
        <p>Return the name of the package that invoked this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getChangingConfigurations()">getChangingConfigurations</a>()
      </code>
      
        <p>If this activity is being destroyed because it can not handle a
 configuration parameter being changed (and thus its
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged(android.content.res.Configuration)</a></code> method is
 <em>not</em> being called), then you can use this method to discover
 the set of changes that have occurred while in the process of being
 destroyed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getComponentName()">getComponentName</a>()
      </code>
      
        <p>Returns the complete component name of this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/transition/Scene">Scene</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getContentScene()">getContentScene</a>()
      </code>
      
        <p>Retrieve the <code translate="no" dir="ltr"><a href="/reference/android/transition/Scene">Scene</a></code> representing this window's current content.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/transition/TransitionManager">TransitionManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getContentTransitionManager()">getContentTransitionManager</a>()
      </code>
      
        <p>Retrieve the <code translate="no" dir="ltr"><a href="/reference/android/transition/TransitionManager">TransitionManager</a></code> responsible for default transitions in this window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getCurrentFocus()">getCurrentFocus</a>()
      </code>
      
        <p>Calls <code translate="no" dir="ltr"><a href="/reference/android/view/Window#getCurrentFocus()">Window.getCurrentFocus()</a></code> on the
 Window of this Activity to return the currently focused view.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/FragmentManager">FragmentManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getFragmentManager()">getFragmentManager</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Use <code translate="no" dir="ltr"><a href="https://developer.android.com/reference/androidx/fragment/app/FragmentActivity.html#getSupportFragmentManager()">FragmentActivity.getSupportFragmentManager()</a></code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getIntent()">getIntent</a>()
      </code>
      
        <p>Return the intent that started this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLastNonConfigurationInstance()">getLastNonConfigurationInstance</a>()
      </code>
      
        <p>Retrieve the non-configuration instance data that was previously
 returned by <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLaunchedFromPackage()">getLaunchedFromPackage</a>()
      </code>
      
        <p>Returns the package name of the app that initially launched this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLaunchedFromUid()">getLaunchedFromUid</a>()
      </code>
      
        <p>Returns the uid of the app that initially launched this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/LayoutInflater">LayoutInflater</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLayoutInflater()">getLayoutInflater</a>()
      </code>
      
        <p>Convenience for calling
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#getLayoutInflater()">Window.getLayoutInflater()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/LoaderManager">LoaderManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLoaderManager()">getLoaderManager</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Use <code translate="no" dir="ltr"><a href="https://developer.android.com/reference/androidx/fragment/app/FragmentActivity.html#getSupportLoaderManager()">FragmentActivity.getSupportLoaderManager()</a></code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getLocalClassName()">getLocalClassName</a>()
      </code>
      
        <p>Returns class name for this activity with the package prefix removed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getMaxNumPictureInPictureActions()">getMaxNumPictureInPictureActions</a>()
      </code>
      
        <p>Return the number of actions that will be displayed in the picture-in-picture UI when the
 user interacts with the activity currently in picture-in-picture mode.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/media/session/MediaController">MediaController</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getMediaController()">getMediaController</a>()
      </code>
      
        <p>Gets the controller which should be receiving media key and volume events
 while this activity is in the foreground.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/MenuInflater">MenuInflater</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getMenuInflater()">getMenuInflater</a>()
      </code>
      
        <p>Returns a <code translate="no" dir="ltr"><a href="/reference/android/view/MenuInflater">MenuInflater</a></code> with this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/window/OnBackInvokedDispatcher">OnBackInvokedDispatcher</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getOnBackInvokedDispatcher()">getOnBackInvokedDispatcher</a>()
      </code>
      
        <p>Returns the <code translate="no" dir="ltr"><a href="/reference/android/window/OnBackInvokedDispatcher">OnBackInvokedDispatcher</a></code> instance associated with the window that this
 activity is attached to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/app/Activity">Activity</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getParent()">getParent</a>()
      </code>
      
        <p>Return the parent activity if this view is an embedded child.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getParentActivityIntent()">getParentActivityIntent</a>()
      </code>
      
        <p>Obtain an <code translate="no" dir="ltr"><a href="/reference/android/content/Intent">Intent</a></code> that will launch an explicit target activity specified by
 this activity's logical parent.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/SharedPreferences">SharedPreferences</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getPreferences(int)">getPreferences</a>(int mode)
      </code>
      
        <p>Retrieve a <code translate="no" dir="ltr"><a href="/reference/android/content/SharedPreferences">SharedPreferences</a></code> object for accessing preferences
 that are private to this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="22" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/net/Uri">Uri</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getReferrer()">getReferrer</a>()
      </code>
      
        <p>Return information about who launched this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getRequestedOrientation()">getRequestedOrientation</a>()
      </code>
      
        <p>Return the current requested orientation of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/view/SearchEvent">SearchEvent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getSearchEvent()">getSearchEvent</a>()
      </code>
      
        <p>During the onSearchRequested() callbacks, this function will return the
 <code translate="no" dir="ltr"><a href="/reference/android/view/SearchEvent">SearchEvent</a></code> that triggered the callback, if it exists.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/window/SplashScreen">SplashScreen</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getSplashScreen()">getSplashScreen</a>()
      </code>
      
        <p>Get the interface that activity use to talk to the splash screen.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getSystemService(java.lang.String)">getSystemService</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Return the handle to a system-level service by name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getTaskId()">getTaskId</a>()
      </code>
      
        <p>Return the identifier of the task this activity is in.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/CharSequence">CharSequence</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getTitle()">getTitle</a>()
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getTitleColor()">getTitleColor</a>()
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/VoiceInteractor">VoiceInteractor</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getVoiceInteractor()">getVoiceInteractor</a>()
      </code>
      
        <p>Retrieve the active <code translate="no" dir="ltr"><a href="/reference/android/app/VoiceInteractor">VoiceInteractor</a></code> that the user is going through to
 interact with this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getVolumeControlStream()">getVolumeControlStream</a>()
      </code>
      
        <p>Gets the suggested audio stream whose volume should be changed by the
 hardware volume controls.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/Window">Window</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getWindow()">getWindow</a>()
      </code>
      
        <p>Retrieve the current <code translate="no" dir="ltr"><a href="/reference/android/view/Window">Window</a></code> for the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/WindowManager">WindowManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#getWindowManager()">getWindowManager</a>()
      </code>
      
        <p>Retrieve the window manager for showing custom windows.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="3" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#hasWindowFocus()">hasWindowFocus</a>()
      </code>
      
        <p>Returns true if this activity's <em>main</em> window currently has window focus.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#invalidateOptionsMenu()">invalidateOptionsMenu</a>()
      </code>
      
        <p>Declare that the options menu has changed, so should be recreated.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isActivityTransitionRunning()">isActivityTransitionRunning</a>()
      </code>
      
        <p>Returns whether there are any activity transitions currently running on this
 activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isChangingConfigurations()">isChangingConfigurations</a>()
      </code>
      
        <p>Check to see whether this activity is in the process of being destroyed in order to be
 recreated with a new configuration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isChild()">isChild</a>()
      </code>
      
        <p>Is this activity embedded inside of another activity?
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isDestroyed()">isDestroyed</a>()
      </code>
      
        <p>Returns true if the final <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onDestroy()">onDestroy()</a></code> call has been made
 on the Activity, so this instance is now dead.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isFinishing()">isFinishing</a>()
      </code>
      
        <p>Check to see whether this activity is in the process of finishing,
 either because you called <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#finish()">finish()</a></code> on it or someone else
 has requested that it finished.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="18" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isImmersive()">isImmersive</a>()
      </code>
      
        <p>Bit indicating that this activity is "immersive" and should not be
 interrupted by notifications if possible.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isInMultiWindowMode()">isInMultiWindowMode</a>()
      </code>
      
        <p>Returns true if the activity is currently in multi-window mode.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isInPictureInPictureMode()">isInPictureInPictureMode</a>()
      </code>
      
        <p>Returns true if the activity is currently in picture-in-picture mode.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isLaunchedFromBubble()">isLaunchedFromBubble</a>()
      </code>
      
        <p>Indicates whether this activity is launched from a bubble.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isLocalVoiceInteractionSupported()">isLocalVoiceInteractionSupported</a>()
      </code>
      
        <p>Queries whether the currently enabled voice interaction service supports returning
 a voice interactor for use by the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isTaskRoot()">isTaskRoot</a>()
      </code>
      
        <p>Return whether this activity is the root of a task.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isVoiceInteraction()">isVoiceInteraction</a>()
      </code>
      
        <p>Check whether this activity is running as part of a voice interaction with the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#isVoiceInteractionRoot()">isVoiceInteractionRoot</a>()
      </code>
      
        <p>Like <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#isVoiceInteraction()">isVoiceInteraction()</a></code>, but only returns <code translate="no" dir="ltr">true</code> if this is also the root
 of a voice interaction.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/database/Cursor">Cursor</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#managedQuery(android.net.Uri,%20java.lang.String[],%20java.lang.String,%20java.lang.String[],%20java.lang.String)">managedQuery</a>(<a href="/reference/android/net/Uri">Uri</a> uri, <a href="/reference/java/lang/String">String[]</a> projection, <a href="/reference/java/lang/String">String</a> selection, <a href="/reference/java/lang/String">String[]</a> selectionArgs, <a href="/reference/java/lang/String">String</a> sortOrder)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/content/CursorLoader">CursorLoader</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#moveTaskToBack(boolean)">moveTaskToBack</a>(boolean nonRoot)
      </code>
      
        <p>Move the task containing this activity to the back of the activity
 stack.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#navigateUpTo(android.content.Intent)">navigateUpTo</a>(<a href="/reference/android/content/Intent">Intent</a> upIntent)
      </code>
      
        <p>Navigate from this activity to the activity specified by upIntent, finishing this activity
 in the process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#navigateUpToFromChild(android.app.Activity,%20android.content.Intent)">navigateUpToFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, <a href="/reference/android/content/Intent">Intent</a> upIntent)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#navigateUpTo(android.content.Intent)">navigateUpTo(android.content.Intent)</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onActionModeFinished(android.view.ActionMode)">onActionModeFinished</a>(<a href="/reference/android/view/ActionMode">ActionMode</a> mode)
      </code>
      
        <p>Notifies the activity that an action mode has finished.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onActionModeStarted(android.view.ActionMode)">onActionModeStarted</a>(<a href="/reference/android/view/ActionMode">ActionMode</a> mode)
      </code>
      
        <p>Notifies the Activity that an action mode has been started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onActivityReenter(int,%20android.content.Intent)">onActivityReenter</a>(int resultCode, <a href="/reference/android/content/Intent">Intent</a> data)
      </code>
      
        <p>Called when an activity you launched with an activity transition exposes this
 Activity through a returning activity transition, giving you the resultCode
 and any additional data from it.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onActivityResult(int,%20int,%20android.content.Intent)">onActivityResult</a>(int requestCode, int resultCode, <a href="/reference/android/content/Intent">Intent</a> data)
      </code>
      
        <p>Called when an activity you launched exits, giving you the requestCode
 you started it with, the resultCode it returned, and any additional
 data from it.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onApplyThemeResource(android.content.res.Resources.Theme,%20int,%20boolean)">onApplyThemeResource</a>(<a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a> theme, int resid, boolean first)
      </code>
      
        <p>Called by <code translate="no" dir="ltr"><a href="/reference/android/view/ContextThemeWrapper#setTheme(android.content.res.Resources.Theme)">setTheme(Theme)</a></code> and <code translate="no" dir="ltr"><a href="/reference/android/view/ContextThemeWrapper#getTheme()">getTheme()</a></code> to apply a theme
 resource to the current Theme object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onAttachFragment(android.app.Fragment)">onAttachFragment</a>(<a href="/reference/android/app/Fragment">Fragment</a> fragment)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Use <code translate="no" dir="ltr"><a href="https://developer.android.com/reference/androidx/fragment/app/FragmentActivity.html#onAttachFragment(androidx.fragment.app.Fragment)">FragmentActivity.onAttachFragment(androidx.fragment.app.Fragment)</a></code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onAttachedToWindow()">onAttachedToWindow</a>()
      </code>
      
        <p>Called when the main window associated with the activity has been
 attached to the window manager.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" data-version-deprecated="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onBackPressed()">onBackPressed</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 33.
    Use <code translate="no" dir="ltr"><a href="/reference/android/window/OnBackInvokedCallback">OnBackInvokedCallback</a></code> or
 <code translate="no" dir="ltr">androidx.activity.OnBackPressedCallback</code> to handle back navigation instead.
 <p>
 Starting from Android 13 (API level 33), back event handling is
 moving to an ahead-of-time model and <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onBackPressed()">Activity#onBackPressed()</a></code> and
 <code translate="no" dir="ltr"><a href="/reference/android/view/KeyEvent#KEYCODE_BACK">KeyEvent#KEYCODE_BACK</a></code> should not be used to handle back events (back gesture or
 back button click). Instead, an <code translate="no" dir="ltr"><a href="/reference/android/window/OnBackInvokedCallback">OnBackInvokedCallback</a></code> should be registered using
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#getOnBackInvokedDispatcher()">Activity#getOnBackInvokedDispatcher()</a></code>
 <code translate="no" dir="ltr"><a href="/reference/android/window/OnBackInvokedDispatcher#registerOnBackInvokedCallback(int,%20android.window.OnBackInvokedCallback)">.registerOnBackInvokedCallback(priority, callback)</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onChildTitleChanged(android.app.Activity,%20java.lang.CharSequence)">onChildTitleChanged</a>(<a href="/reference/android/app/Activity">Activity</a> childActivity, <a href="/reference/java/lang/CharSequence">CharSequence</a> title)
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged</a>(<a href="/reference/android/content/res/Configuration">Configuration</a> newConfig)
      </code>
      
        <p>Called by the system when the device configuration changes while your
 activity is running.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onContentChanged()">onContentChanged</a>()
      </code>
      
        <p>This hook is called whenever the content view of the screen changes
 (due to a call to
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">Window.setContentView</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#addContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">Window.addContentView</a></code>).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onContextItemSelected(android.view.MenuItem)">onContextItemSelected</a>(<a href="/reference/android/view/MenuItem">MenuItem</a> item)
      </code>
      
        <p>This hook is called whenever an item in a context menu is selected.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onContextMenuClosed(android.view.Menu)">onContextMenuClosed</a>(<a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>This hook is called whenever the context menu is being closed (either by
 the user canceling the menu with the back/menu button, or when an item is
 selected).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreate(android.os.Bundle,%20android.os.PersistableBundle)">onCreate</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState, <a href="/reference/android/os/PersistableBundle">PersistableBundle</a> persistentState)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate(android.os.Bundle)</a></code> but called for those activities created with
 the attribute <code translate="no" dir="ltr"><a href="/reference/android/R.attr#persistableMode">R.attr.persistableMode</a></code> set to
 <code translate="no" dir="ltr">persistAcrossReboots</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState)
      </code>
      
        <p>Called when the activity is starting.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo)">onCreateContextMenu</a>(<a href="/reference/android/view/ContextMenu">ContextMenu</a> menu, <a href="/reference/android/view/View">View</a> v, <a href="/reference/android/view/ContextMenu.ContextMenuInfo">ContextMenu.ContextMenuInfo</a> menuInfo)
      </code>
      
        <p>Called when a context menu for the <code translate="no" dir="ltr">view</code> is about to be shown.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/CharSequence">CharSequence</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateDescription()">onCreateDescription</a>()
      </code>
      
        <p>Generate a new description for this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/Dialog">Dialog</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateDialog(int)">onCreateDialog</a>(int id)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Old no-arguments version of <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreateDialog(int,%20android.os.Bundle)">onCreateDialog(int, android.os.Bundle)</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/app/Dialog">Dialog</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateDialog(int,%20android.os.Bundle)">onCreateDialog</a>(int id, <a href="/reference/android/os/Bundle">Bundle</a> args)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateNavigateUpTaskStack(android.app.TaskStackBuilder)">onCreateNavigateUpTaskStack</a>(<a href="/reference/android/app/TaskStackBuilder">TaskStackBuilder</a> builder)
      </code>
      
        <p>Define the synthetic task stack that will be generated during Up navigation from
 a different task.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateOptionsMenu(android.view.Menu)">onCreateOptionsMenu</a>(<a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Initialize the contents of the Activity's standard options menu.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreatePanelMenu(int,%20android.view.Menu)">onCreatePanelMenu</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Default implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window.Callback#onCreatePanelMenu(int,%20android.view.Menu)">Window.Callback.onCreatePanelMenu(int, Menu)</a></code>
 for activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreatePanelView(int)">onCreatePanelView</a>(int featureId)
      </code>
      
        <p>Default implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window.Callback#onCreatePanelView(int)">Window.Callback.onCreatePanelView(int)</a></code>
 for activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateThumbnail(android.graphics.Bitmap,%20android.graphics.Canvas)">onCreateThumbnail</a>(<a href="/reference/android/graphics/Bitmap">Bitmap</a> outBitmap, <a href="/reference/android/graphics/Canvas">Canvas</a> canvas)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Method doesn't do anything and will be removed in the future.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateView(android.view.View,%20java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">onCreateView</a>(<a href="/reference/android/view/View">View</a> parent, <a href="/reference/java/lang/String">String</a> name, <a href="/reference/android/content/Context">Context</a> context, <a href="/reference/android/util/AttributeSet">AttributeSet</a> attrs)
      </code>
      
        <p>Standard implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/LayoutInflater.Factory2#onCreateView(android.view.View,%20java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">LayoutInflater.Factory2.onCreateView(View, String, Context, AttributeSet)</a></code>
 used when inflating with the LayoutInflater returned by <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.Class<T>)">Context.getSystemService(Class)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onCreateView(java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">onCreateView</a>(<a href="/reference/java/lang/String">String</a> name, <a href="/reference/android/content/Context">Context</a> context, <a href="/reference/android/util/AttributeSet">AttributeSet</a> attrs)
      </code>
      
        <p>Standard implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/LayoutInflater.Factory#onCreateView(java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">LayoutInflater.Factory.onCreateView(String, Context, AttributeSet)</a></code> used when
 inflating with the LayoutInflater returned by <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getSystemService(java.lang.Class<T>)">Context.getSystemService(Class)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onDestroy()">onDestroy</a>()
      </code>
      
        <p>Perform any final cleanup before an activity is destroyed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onDetachedFromWindow()">onDetachedFromWindow</a>()
      </code>
      
        <p>Called when the main window associated with the activity has been
 detached from the window manager.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onEnterAnimationComplete()">onEnterAnimationComplete</a>()
      </code>
      
        <p>Activities cannot draw during the period that their windows are animating in.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="12" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onGenericMotionEvent(android.view.MotionEvent)">onGenericMotionEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called when a generic motion event was not handled by any of the
 views inside of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onGetDirectActions(android.os.CancellationSignal,%20java.util.function.Consumer<java.util.List<android.app.DirectAction>>)">onGetDirectActions</a>(<a href="/reference/android/os/CancellationSignal">CancellationSignal</a> cancellationSignal, <a href="/reference/java/util/function/Consumer">Consumer</a>&lt;<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/app/DirectAction">DirectAction</a>&gt;&gt; callback)
      </code>
      
        <p>Returns the list of direct actions supported by the app.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onKeyDown(int,%20android.view.KeyEvent)">onKeyDown</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a key was pressed down and not handled by any of the views
 inside of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onKeyLongPress(int,%20android.view.KeyEvent)">onKeyLongPress</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Default implementation of <code translate="no" dir="ltr"><a href="/reference/android/view/KeyEvent.Callback#onKeyLongPress(int,%20android.view.KeyEvent)">KeyEvent.Callback.onKeyLongPress()</a></code>: always returns false (doesn't handle
 the event).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onKeyMultiple(int,%20int,%20android.view.KeyEvent)">onKeyMultiple</a>(int keyCode, int repeatCount, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Default implementation of <code translate="no" dir="ltr"><a href="/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)">KeyEvent.Callback.onKeyMultiple()</a></code>: always returns false (doesn't handle
 the event).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onKeyShortcut(int,%20android.view.KeyEvent)">onKeyShortcut</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a key shortcut event is not handled by any of the views in the Activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onKeyUp(int,%20android.view.KeyEvent)">onKeyUp</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a key was released and not handled by any of the views
 inside of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onLocalVoiceInteractionStarted()">onLocalVoiceInteractionStarted</a>()
      </code>
      
        <p>Callback to indicate that <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startLocalVoiceInteraction(android.os.Bundle)">startLocalVoiceInteraction(android.os.Bundle)</a></code> has resulted in a
 voice interaction session being started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onLocalVoiceInteractionStopped()">onLocalVoiceInteractionStopped</a>()
      </code>
      
        <p>Callback to indicate that the local voice interaction has stopped either
 because it was requested through a call to <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#stopLocalVoiceInteraction()">stopLocalVoiceInteraction()</a></code>
 or because it was canceled by the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onLowMemory()">onLowMemory</a>()
      </code>
      
        <p>This is called when the overall system is running low on memory, and
 actively running processes should trim their memory usage.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onMenuItemSelected(int,%20android.view.MenuItem)">onMenuItemSelected</a>(int featureId, <a href="/reference/android/view/MenuItem">MenuItem</a> item)
      </code>
      
        <p>Default implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window.Callback#onMenuItemSelected(int,%20android.view.MenuItem)">Window.Callback.onMenuItemSelected(int, MenuItem)</a></code>
 for activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onMenuOpened(int,%20android.view.Menu)">onMenuOpened</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Called when a panel's menu is opened by the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" data-version-deprecated="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onMultiWindowModeChanged(boolean)">onMultiWindowModeChanged</a>(boolean isInMultiWindowMode)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 26.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onMultiWindowModeChanged(boolean,%20android.content.res.Configuration)">onMultiWindowModeChanged(boolean, android.content.res.Configuration)</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onMultiWindowModeChanged(boolean,%20android.content.res.Configuration)">onMultiWindowModeChanged</a>(boolean isInMultiWindowMode, <a href="/reference/android/content/res/Configuration">Configuration</a> newConfig)
      </code>
      
        <p>Called by the system when the activity changes from fullscreen mode to multi-window mode and
 visa-versa.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onNavigateUp()">onNavigateUp</a>()
      </code>
      
        <p>This method is called whenever the user chooses to navigate Up within your application's
 activity hierarchy from the action bar.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onNavigateUpFromChild(android.app.Activity)">onNavigateUpFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onNavigateUp()">onNavigateUp()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onNewIntent(android.content.Intent)">onNewIntent</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>This is called for activities that set launchMode to "singleTop" in
 their package, or if a client used the <code translate="no" dir="ltr"><a href="/reference/android/content/Intent#FLAG_ACTIVITY_SINGLE_TOP">Intent#FLAG_ACTIVITY_SINGLE_TOP</a></code>
 flag when calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivity(android.content.Intent)">startActivity(Intent)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onOptionsItemSelected(android.view.MenuItem)">onOptionsItemSelected</a>(<a href="/reference/android/view/MenuItem">MenuItem</a> item)
      </code>
      
        <p>This hook is called whenever an item in your options menu is selected.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onOptionsMenuClosed(android.view.Menu)">onOptionsMenuClosed</a>(<a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>This hook is called whenever the options menu is being closed (either by the user canceling
 the menu with the back/menu button, or when an item is selected).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPanelClosed(int,%20android.view.Menu)">onPanelClosed</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Default implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window.Callback#onPanelClosed(int,%20android.view.Menu)">Window.Callback.onPanelClosed(int, Menu)</a></code> for
 activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPause()">onPause</a>()
      </code>
      
        <p>Called as part of the activity lifecycle when the user no longer actively interacts with the
 activity, but it is still visible on screen.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPerformDirectAction(java.lang.String,%20android.os.Bundle,%20android.os.CancellationSignal,%20java.util.function.Consumer<android.os.Bundle>)">onPerformDirectAction</a>(<a href="/reference/java/lang/String">String</a> actionId, <a href="/reference/android/os/Bundle">Bundle</a> arguments, <a href="/reference/android/os/CancellationSignal">CancellationSignal</a> cancellationSignal, <a href="/reference/java/util/function/Consumer">Consumer</a>&lt;<a href="/reference/android/os/Bundle">Bundle</a>&gt; resultListener)
      </code>
      
        <p>This is called to perform an action previously defined by the app.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPictureInPictureModeChanged(boolean,%20android.content.res.Configuration)">onPictureInPictureModeChanged</a>(boolean isInPictureInPictureMode, <a href="/reference/android/content/res/Configuration">Configuration</a> newConfig)
      </code>
      
        <p>Called by the system when the activity changes to and from picture-in-picture mode.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" data-version-deprecated="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPictureInPictureModeChanged(boolean)">onPictureInPictureModeChanged</a>(boolean isInPictureInPictureMode)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 26.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onPictureInPictureModeChanged(boolean,%20android.content.res.Configuration)">onPictureInPictureModeChanged(boolean, android.content.res.Configuration)</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPictureInPictureRequested()">onPictureInPictureRequested</a>()
      </code>
      
        <p>This method is called by the system in various cases where picture in picture mode should be
 entered if supported.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPictureInPictureUiStateChanged(android.app.PictureInPictureUiState)">onPictureInPictureUiStateChanged</a>(<a href="/reference/android/app/PictureInPictureUiState">PictureInPictureUiState</a> pipState)
      </code>
      
        <p>Called by the system when the activity is in PiP and has state changes.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPostCreate(android.os.Bundle)">onPostCreate</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState)
      </code>
      
        <p>Called when activity start-up is complete (after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onStart()">onStart()</a></code>
 and <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> have been called).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPostCreate(android.os.Bundle,%20android.os.PersistableBundle)">onPostCreate</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState, <a href="/reference/android/os/PersistableBundle">PersistableBundle</a> persistentState)
      </code>
      
        <p>This is the same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onPostCreate(android.os.Bundle)">onPostCreate(android.os.Bundle)</a></code> but is called for activities
 created with the attribute <code translate="no" dir="ltr"><a href="/reference/android/R.attr#persistableMode">R.attr.persistableMode</a></code> set to
 <code translate="no" dir="ltr">persistAcrossReboots</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPostResume()">onPostResume</a>()
      </code>
      
        <p>Called when activity resume is complete (after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onResume()">onResume()</a></code> has
 been called).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPrepareDialog(int,%20android.app.Dialog,%20android.os.Bundle)">onPrepareDialog</a>(int id, <a href="/reference/android/app/Dialog">Dialog</a> dialog, <a href="/reference/android/os/Bundle">Bundle</a> args)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPrepareDialog(int,%20android.app.Dialog)">onPrepareDialog</a>(int id, <a href="/reference/android/app/Dialog">Dialog</a> dialog)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Old no-arguments version of
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onPrepareDialog(int,%20android.app.Dialog,%20android.os.Bundle)">onPrepareDialog(int, android.app.Dialog, android.os.Bundle)</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPrepareNavigateUpTaskStack(android.app.TaskStackBuilder)">onPrepareNavigateUpTaskStack</a>(<a href="/reference/android/app/TaskStackBuilder">TaskStackBuilder</a> builder)
      </code>
      
        <p>Prepare the synthetic task stack that will be generated during Up navigation
 from a different task.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPrepareOptionsMenu(android.view.Menu)">onPrepareOptionsMenu</a>(<a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Prepare the Screen's standard options menu to be displayed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onPreparePanel(int,%20android.view.View,%20android.view.Menu)">onPreparePanel</a>(int featureId, <a href="/reference/android/view/View">View</a> view, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Default implementation of
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window.Callback#onPreparePanel(int,%20android.view.View,%20android.view.Menu)">Window.Callback.onPreparePanel(int, View, Menu)</a></code>
 for activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onProvideAssistContent(android.app.assist.AssistContent)">onProvideAssistContent</a>(<a href="/reference/android/app/assist/AssistContent">AssistContent</a> outContent)
      </code>
      
        <p>This is called when the user is requesting an assist, to provide references
 to content related to the current activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="18" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onProvideAssistData(android.os.Bundle)">onProvideAssistData</a>(<a href="/reference/android/os/Bundle">Bundle</a> data)
      </code>
      
        <p>This is called when the user is requesting an assist, to build a full
 <code translate="no" dir="ltr"><a href="/reference/android/content/Intent#ACTION_ASSIST">Intent#ACTION_ASSIST</a></code> Intent with all of the context of the current
 application.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onProvideKeyboardShortcuts(java.util.List<android.view.KeyboardShortcutGroup>,%20android.view.Menu,%20int)">onProvideKeyboardShortcuts</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/view/KeyboardShortcutGroup">KeyboardShortcutGroup</a>&gt; data, <a href="/reference/android/view/Menu">Menu</a> menu, int deviceId)
      </code>
      
        <p>Called when Keyboard Shortcuts are requested for the current window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/net/Uri">Uri</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onProvideReferrer()">onProvideReferrer</a>()
      </code>
      
        <p>Override to generate the desired referrer for the content currently being shown
 by the app.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onRequestPermissionsResult(int,%20java.lang.String[],%20int[])">onRequestPermissionsResult</a>(int requestCode, <a href="/reference/java/lang/String">String[]</a> permissions, int[] grantResults)
      </code>
      
        <p>Callback for the result from requesting permissions.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onRestart()">onRestart</a>()
      </code>
      
        <p>Called after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onStop()">onStop()</a></code> when the current activity is being
 re-displayed to the user (the user has navigated back to it).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState)
      </code>
      
        <p>This method is called after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onStart()">onStart()</a></code> when the activity is
 being re-initialized from a previously saved state, given here in
 <var translate="no">savedInstanceState</var>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle,%20android.os.PersistableBundle)">onRestoreInstanceState</a>(<a href="/reference/android/os/Bundle">Bundle</a> savedInstanceState, <a href="/reference/android/os/PersistableBundle">PersistableBundle</a> persistentState)
      </code>
      
        <p>This is the same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(android.os.Bundle)</a></code> but is called for activities
 created with the attribute <code translate="no" dir="ltr"><a href="/reference/android/R.attr#persistableMode">R.attr.persistableMode</a></code> set to
 <code translate="no" dir="ltr">persistAcrossReboots</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onResume()">onResume</a>()
      </code>
      
        <p>Called after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code>, <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestart()">onRestart()</a></code>, or <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onPause()">onPause()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onRetainNonConfigurationInstance()">onRetainNonConfigurationInstance</a>()
      </code>
      
        <p>Called by the system, as part of destroying an
 activity due to a configuration change, when it is known that a new
 instance will immediately be created for the new configuration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onSaveInstanceState(android.os.Bundle,%20android.os.PersistableBundle)">onSaveInstanceState</a>(<a href="/reference/android/os/Bundle">Bundle</a> outState, <a href="/reference/android/os/PersistableBundle">PersistableBundle</a> outPersistentState)
      </code>
      
        <p>This is the same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState(Bundle)</a></code> but is called for activities
 created with the attribute <code translate="no" dir="ltr"><a href="/reference/android/R.attr#persistableMode">R.attr.persistableMode</a></code> set to
 <code translate="no" dir="ltr">persistAcrossReboots</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onSaveInstanceState(android.os.Bundle)">onSaveInstanceState</a>(<a href="/reference/android/os/Bundle">Bundle</a> outState)
      </code>
      
        <p>Called to retrieve per-instance state from an activity before being killed
 so that the state can be restored in <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestoreInstanceState(android.os.Bundle)">onRestoreInstanceState(Bundle)</a></code> (the <code translate="no" dir="ltr"><a href="/reference/android/os/Bundle">Bundle</a></code> populated by this method
 will be passed to both).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onSearchRequested(android.view.SearchEvent)">onSearchRequested</a>(<a href="/reference/android/view/SearchEvent">SearchEvent</a> searchEvent)
      </code>
      
        <p>This hook is called when the user signals the desire to start a search.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onSearchRequested()">onSearchRequested</a>()
      </code>
      
        <p>Called when the user signals the desire to start a search.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onStart()">onStart</a>()
      </code>
      
        <p>Called after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code> &mdash; or after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onRestart()">onRestart()</a></code> when
 the activity had been stopped, but is now again being displayed to the
 user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" data-version-deprecated="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onStateNotSaved()">onStateNotSaved</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 29.
    starting with <code translate="no" dir="ltr"><a href="/reference/android/os/Build.VERSION_CODES#P">Build.VERSION_CODES.P</a></code> onSaveInstanceState is
 called after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onStop()">onStop()</a></code>, so this hint isn't accurate anymore: you should consider your
 state not saved in between <code translate="no" dir="ltr">onStart</code> and <code translate="no" dir="ltr">onStop</code> callbacks inclusively.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onStop()">onStop</a>()
      </code>
      
        <p>Called when you are no longer visible to the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onTitleChanged(java.lang.CharSequence,%20int)">onTitleChanged</a>(<a href="/reference/java/lang/CharSequence">CharSequence</a> title, int color)
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onTopResumedActivityChanged(boolean)">onTopResumedActivityChanged</a>(boolean isTopResumedActivity)
      </code>
      
        <p>Called when activity gets or loses the top resumed position in the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onTouchEvent(android.view.MotionEvent)">onTouchEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called when a touch screen event was not handled by any of the views
 inside of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onTrackballEvent(android.view.MotionEvent)">onTrackballEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called when the trackball was moved and not handled by any of the
 views inside of the activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onTrimMemory(int)">onTrimMemory</a>(int level)
      </code>
      
        <p>Called when the operating system has determined that it is a good
 time for a process to trim unneeded memory from its process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="3" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onUserInteraction()">onUserInteraction</a>()
      </code>
      
        <p>Called whenever a key, touch, or trackball event is dispatched to the
 activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="3" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onUserLeaveHint()">onUserLeaveHint</a>()
      </code>
      
        <p>Called as part of the activity lifecycle when an activity is about to go
 into the background as the result of user choice.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" data-version-deprecated="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onVisibleBehindCanceled()">onVisibleBehindCanceled</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 26.
    This method's functionality is no longer supported as of
 <code translate="no" dir="ltr"><a href="/reference/android/os/Build.VERSION_CODES#O">Build.VERSION_CODES.O</a></code> and will be removed in a future release.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)">onWindowAttributesChanged</a>(<a href="/reference/android/view/WindowManager.LayoutParams">WindowManager.LayoutParams</a> params)
      </code>
      
        <p>This is called whenever the current window attributes change.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onWindowFocusChanged(boolean)">onWindowFocusChanged</a>(boolean hasFocus)
      </code>
      
        <p>Called when the current <code translate="no" dir="ltr"><a href="/reference/android/view/Window">Window</a></code> of the activity gains or loses
 focus.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onWindowStartingActionMode(android.view.ActionMode.Callback,%20int)">onWindowStartingActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback, int type)
      </code>
      
        <p>Called when an action mode is being started for this window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#onWindowStartingActionMode(android.view.ActionMode.Callback)">onWindowStartingActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback)
      </code>
      
        <p>Give the Activity a chance to control the UI for an action mode requested
 by the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#openContextMenu(android.view.View)">openContextMenu</a>(<a href="/reference/android/view/View">View</a> view)
      </code>
      
        <p>Programmatically opens the context menu for a particular <code translate="no" dir="ltr">view</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#openOptionsMenu()">openOptionsMenu</a>()
      </code>
      
        <p>Programmatically opens the options menu.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int,%20int)">overrideActivityTransition</a>(int overrideType, int enterAnim, int exitAnim, int backgroundColor)
      </code>
      
        <p>Customizes the animation for the activity transition with this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int)">overrideActivityTransition</a>(int overrideType, int enterAnim, int exitAnim)
      </code>
      
        <p>Customizes the animation for the activity transition with this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" data-version-deprecated="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#overridePendingTransition(int,%20int)">overridePendingTransition</a>(int enterAnim, int exitAnim)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 34.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int)">overrideActivityTransition(int, int, int)</a></code>} instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" data-version-deprecated="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#overridePendingTransition(int,%20int,%20int)">overridePendingTransition</a>(int enterAnim, int exitAnim, int backgroundColor)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 34.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#overrideActivityTransition(int,%20int,%20int,%20int)">overrideActivityTransition(int, int, int, int)</a></code>} instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#postponeEnterTransition()">postponeEnterTransition</a>()
      </code>
      
        <p>Postpone the entering activity transition when Activity was started with
 <code translate="no" dir="ltr"><a href="/reference/android/app/ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,%20android.util.Pair<android.view.View,java.lang.String>[])">ActivityOptions.makeSceneTransitionAnimation(Activity, android.util.Pair[])</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#recreate()">recreate</a>()
      </code>
      
        <p>Cause this Activity to be recreated with a new instance.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks)">registerActivityLifecycleCallbacks</a>(<a href="/reference/android/app/Application.ActivityLifecycleCallbacks">Application.ActivityLifecycleCallbacks</a> callback)
      </code>
      
        <p>Register an <code translate="no" dir="ltr"><a href="/reference/android/app/Application.ActivityLifecycleCallbacks">Application.ActivityLifecycleCallbacks</a></code> instance that receives
 lifecycle callbacks for only this Activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Add a new <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> to the base application of the
 Context, which will be called at the same times as the ComponentCallbacks
 methods of activities and other components are called.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#registerForContextMenu(android.view.View)">registerForContextMenu</a>(<a href="/reference/android/view/View">View</a> view)
      </code>
      
        <p>Registers a context menu to be shown for the given view (multiple views
 can show the context menu).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#registerScreenCaptureCallback(java.util.concurrent.Executor,%20android.app.Activity.ScreenCaptureCallback)">registerScreenCaptureCallback</a>(<a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/app/Activity.ScreenCaptureCallback">Activity.ScreenCaptureCallback</a> callback)
      </code>
      
        <p>Registers a screen capture callback for this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#releaseInstance()">releaseInstance</a>()
      </code>
      
        <p>Ask that the local app instance of this activity be released to free up its memory.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#removeDialog(int)">removeDialog</a>(int id)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#reportFullyDrawn()">reportFullyDrawn</a>()
      </code>
      
        <p>Report to the system that your app is now fully drawn, for diagnostic and
 optimization purposes.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/DragAndDropPermissions">DragAndDropPermissions</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestDragAndDropPermissions(android.view.DragEvent)">requestDragAndDropPermissions</a>(<a href="/reference/android/view/DragEvent">DragEvent</a> event)
      </code>
      
        <p>Create <code translate="no" dir="ltr"><a href="/reference/android/view/DragAndDropPermissions">DragAndDropPermissions</a></code> object bound to this activity and controlling the
 access permissions for content URIs associated with the <code translate="no" dir="ltr"><a href="/reference/android/view/DragEvent">DragEvent</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestFullscreenMode(int,%20android.os.OutcomeReceiver<java.lang.Void,java.lang.Throwable>)">requestFullscreenMode</a>(int request, <a href="/reference/android/os/OutcomeReceiver">OutcomeReceiver</a>&lt;<a href="/reference/java/lang/Void">Void</a>,&nbsp;<a href="/reference/java/lang/Throwable">Throwable</a>&gt; approvalCallback)
      </code>
      
        <p>Request to put the a freeform activity into fullscreen.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestPermissions(java.lang.String[],%20int)">requestPermissions</a>(<a href="/reference/java/lang/String">String[]</a> permissions, int requestCode)
      </code>
      
        <p>Requests permissions to be granted to this application.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestShowKeyboardShortcuts()">requestShowKeyboardShortcuts</a>()
      </code>
      
        <p>Request the Keyboard Shortcuts screen to show up.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" data-version-deprecated="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestVisibleBehind(boolean)">requestVisibleBehind</a>(boolean visible)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 26.
    This method's functionality is no longer supported as of
             <code translate="no" dir="ltr"><a href="/reference/android/os/Build.VERSION_CODES#O">Build.VERSION_CODES.O</a></code> and will be removed in a future release.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requestWindowFeature(int)">requestWindowFeature</a>(int featureId)
      </code>
      
        <p>Enable extended window features.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        &lt;T&nbsp;extends&nbsp;<a href="/reference/android/view/View">View</a>&gt;
        T</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#requireViewById(int)">requireViewById</a>(int id)
      </code>
      
        <p>Finds a view that was  identified by the <code translate="no" dir="ltr">android:id</code> XML attribute that was processed
 in <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#onCreate(android.os.Bundle)">onCreate(Bundle)</a></code>, or throws an IllegalArgumentException if the ID is invalid, or there is
 no matching view in the hierarchy.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#runOnUiThread(java.lang.Runnable)">runOnUiThread</a>(<a href="/reference/java/lang/Runnable">Runnable</a> action)
      </code>
      
        <p>Runs the specified action on the UI thread.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setActionBar(android.widget.Toolbar)">setActionBar</a>(<a href="/reference/android/widget/Toolbar">Toolbar</a> toolbar)
      </code>
      
        <p>Set a <code translate="no" dir="ltr"><a href="/reference/android/widget/Toolbar">Toolbar</a></code> to act as the <code translate="no" dir="ltr"><a href="/reference/android/app/ActionBar">ActionBar</a></code> for this
 Activity window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setContentTransitionManager(android.transition.TransitionManager)">setContentTransitionManager</a>(<a href="/reference/android/transition/TransitionManager">TransitionManager</a> tm)
      </code>
      
        <p>Set the <code translate="no" dir="ltr"><a href="/reference/android/transition/TransitionManager">TransitionManager</a></code> to use for default transitions in this window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">setContentView</a>(<a href="/reference/android/view/View">View</a> view, <a href="/reference/android/view/ViewGroup.LayoutParams">ViewGroup.LayoutParams</a> params)
      </code>
      
        <p>Set the activity content to an explicit view.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setContentView(android.view.View)">setContentView</a>(<a href="/reference/android/view/View">View</a> view)
      </code>
      
        <p>Set the activity content to an explicit view.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setContentView(int)">setContentView</a>(int layoutResID)
      </code>
      
        <p>Set the activity content from a layout resource.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setDefaultKeyMode(int)">setDefaultKeyMode</a>(int mode)
      </code>
      
        <p>Select the default key handling for this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setEnterSharedElementCallback(android.app.SharedElementCallback)">setEnterSharedElementCallback</a>(<a href="/reference/android/app/SharedElementCallback">SharedElementCallback</a> callback)
      </code>
      
        <p>When <code translate="no" dir="ltr"><a href="/reference/android/app/ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,%20android.view.View,%20java.lang.String)">ActivityOptions.makeSceneTransitionAnimation(Activity, android.view.View, String)</a></code> was used to start an Activity, <var translate="no">callback</var>
 will be called to handle shared elements on the <i>launched</i> Activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setExitSharedElementCallback(android.app.SharedElementCallback)">setExitSharedElementCallback</a>(<a href="/reference/android/app/SharedElementCallback">SharedElementCallback</a> callback)
      </code>
      
        <p>When <code translate="no" dir="ltr"><a href="/reference/android/app/ActivityOptions#makeSceneTransitionAnimation(android.app.Activity,%20android.view.View,%20java.lang.String)">ActivityOptions.makeSceneTransitionAnimation(Activity, android.view.View, String)</a></code> was used to start an Activity, <var translate="no">callback</var>
 will be called to handle shared elements on the <i>launching</i> Activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setFeatureDrawable(int,%20android.graphics.drawable.Drawable)">setFeatureDrawable</a>(int featureId, <a href="/reference/android/graphics/drawable/Drawable">Drawable</a> drawable)
      </code>
      
        <p>Convenience for calling
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setFeatureDrawable(int,%20android.graphics.drawable.Drawable)">Window.setFeatureDrawable(int, Drawable)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setFeatureDrawableAlpha(int,%20int)">setFeatureDrawableAlpha</a>(int featureId, int alpha)
      </code>
      
        <p>Convenience for calling
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setFeatureDrawableAlpha(int,%20int)">Window.setFeatureDrawableAlpha(int, int)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setFeatureDrawableResource(int,%20int)">setFeatureDrawableResource</a>(int featureId, int resId)
      </code>
      
        <p>Convenience for calling
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setFeatureDrawableResource(int,%20int)">Window.setFeatureDrawableResource(int, int)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setFeatureDrawableUri(int,%20android.net.Uri)">setFeatureDrawableUri</a>(int featureId, <a href="/reference/android/net/Uri">Uri</a> uri)
      </code>
      
        <p>Convenience for calling
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setFeatureDrawableUri(int,%20android.net.Uri)">Window.setFeatureDrawableUri(int, Uri)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setFinishOnTouchOutside(boolean)">setFinishOnTouchOutside</a>(boolean finish)
      </code>
      
        <p>Sets whether this activity is finished when touched outside its window's
 bounds.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="18" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setImmersive(boolean)">setImmersive</a>(boolean i)
      </code>
      
        <p>Adjust the current immersive mode setting.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setInheritShowWhenLocked(boolean)">setInheritShowWhenLocked</a>(boolean inheritShowWhenLocked)
      </code>
      
        <p>Specifies whether this <code translate="no" dir="ltr"><a href="/reference/android/app/Activity">Activity</a></code> should be shown on top of the lock screen whenever
 the lockscreen is up and this activity has another activity behind it with the showWhenLock
 attribute set.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setIntent(android.content.Intent)">setIntent</a>(<a href="/reference/android/content/Intent">Intent</a> newIntent)
      </code>
      
        <p>Change the intent returned by <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#getIntent()">getIntent()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setLocusContext(android.content.LocusId,%20android.os.Bundle)">setLocusContext</a>(<a href="/reference/android/content/LocusId">LocusId</a> locusId, <a href="/reference/android/os/Bundle">Bundle</a> bundle)
      </code>
      
        <p>Sets the <code translate="no" dir="ltr"><a href="/reference/android/content/LocusId">LocusId</a></code> for this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setMediaController(android.media.session.MediaController)">setMediaController</a>(<a href="/reference/android/media/session/MediaController">MediaController</a> controller)
      </code>
      
        <p>Sets a <code translate="no" dir="ltr"><a href="/reference/android/media/session/MediaController">MediaController</a></code> to send media keys and volume changes to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setPictureInPictureParams(android.app.PictureInPictureParams)">setPictureInPictureParams</a>(<a href="/reference/android/app/PictureInPictureParams">PictureInPictureParams</a> params)
      </code>
      
        <p>Updates the properties of the picture-in-picture activity, or sets it to be used later when
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#enterPictureInPictureMode()">enterPictureInPictureMode()</a></code> is called.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setProgress(int)">setProgress</a>(int progress)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 24.
    No longer supported starting in API 21.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setProgressBarIndeterminate(boolean)">setProgressBarIndeterminate</a>(boolean indeterminate)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 24.
    No longer supported starting in API 21.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setProgressBarIndeterminateVisibility(boolean)">setProgressBarIndeterminateVisibility</a>(boolean visible)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 24.
    No longer supported starting in API 21.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setProgressBarVisibility(boolean)">setProgressBarVisibility</a>(boolean visible)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 24.
    No longer supported starting in API 21.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setRecentsScreenshotEnabled(boolean)">setRecentsScreenshotEnabled</a>(boolean enabled)
      </code>
      
        <p>If set to false, this indicates to the system that it should never take a
 screenshot of the activity to be used as a representation in recents screen.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setRequestedOrientation(int)">setRequestedOrientation</a>(int requestedOrientation)
      </code>
      
        <p>Change the desired orientation of this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setResult(int,%20android.content.Intent)">setResult</a>(int resultCode, <a href="/reference/android/content/Intent">Intent</a> data)
      </code>
      
        <p>Call this to set the result that your activity will return to its
 caller.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setResult(int)">setResult</a>(int resultCode)
      </code>
      
        <p>Call this to set the result that your activity will return to its
 caller.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setSecondaryProgress(int)">setSecondaryProgress</a>(int secondaryProgress)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 24.
    No longer supported starting in API 21.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setShouldDockBigOverlays(boolean)">setShouldDockBigOverlays</a>(boolean shouldDockBigOverlays)
      </code>
      
        <p>Specifies a preference to dock big overlays like the expanded picture-in-picture on TV
 (see <code translate="no" dir="ltr"><a href="/reference/android/app/PictureInPictureParams.Builder#setExpandedAspectRatio(android.util.Rational)">PictureInPictureParams.Builder#setExpandedAspectRatio</a></code>).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="27" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setShowWhenLocked(boolean)">setShowWhenLocked</a>(boolean showWhenLocked)
      </code>
      
        <p>Specifies whether an <code translate="no" dir="ltr"><a href="/reference/android/app/Activity">Activity</a></code> should be shown on top of the lock screen whenever
 the lockscreen is up and the activity is resumed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTaskDescription(android.app.ActivityManager.TaskDescription)">setTaskDescription</a>(<a href="/reference/android/app/ActivityManager.TaskDescription">ActivityManager.TaskDescription</a> taskDescription)
      </code>
      
        <p>Sets information describing the task with this activity for presentation inside the Recents
 System UI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTheme(int)">setTheme</a>(int resid)
      </code>
      
        <p>Set the base theme for this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTitle(java.lang.CharSequence)">setTitle</a>(<a href="/reference/java/lang/CharSequence">CharSequence</a> title)
      </code>
      
        <p>Change the title associated with this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTitle(int)">setTitle</a>(int titleId)
      </code>
      
        <p>Change the title associated with this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTitleColor(int)">setTitleColor</a>(int textColor)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Use action bar styles instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTranslucent(boolean)">setTranslucent</a>(boolean translucent)
      </code>
      
        <p>Convert an activity, which particularly with <code translate="no" dir="ltr"><a href="/reference/android/R.attr#windowIsTranslucent">R.attr.windowIsTranslucent</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/R.attr#windowIsFloating">R.attr.windowIsFloating</a></code> attribute, to a fullscreen opaque activity, or
 convert it from opaque back to translucent.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="27" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setTurnScreenOn(boolean)">setTurnScreenOn</a>(boolean turnScreenOn)
      </code>
      
        <p>Specifies whether the screen should be turned on when the <code translate="no" dir="ltr"><a href="/reference/android/app/Activity">Activity</a></code> is resumed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="3" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setVisible(boolean)">setVisible</a>(boolean visible)
      </code>
      
        <p>Control whether this activity's main window is visible.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setVolumeControlStream(int)">setVolumeControlStream</a>(int streamType)
      </code>
      
        <p>Suggests an audio stream whose volume should be changed by the hardware
 volume controls.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#setVrModeEnabled(boolean,%20android.content.ComponentName)">setVrModeEnabled</a>(boolean enabled, <a href="/reference/android/content/ComponentName">ComponentName</a> requestedComponent)
      </code>
      
        <p>Enable or disable virtual reality (VR) mode for this Activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#shouldDockBigOverlays()">shouldDockBigOverlays</a>()
      </code>
      
        <p>Returns whether big overlays should be docked next to the activity as set by
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#setShouldDockBigOverlays(boolean)">setShouldDockBigOverlays(boolean)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#shouldShowRequestPermissionRationale(java.lang.String)">shouldShowRequestPermissionRationale</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Gets whether you should show UI with rationale before requesting a permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#shouldUpRecreateTask(android.content.Intent)">shouldUpRecreateTask</a>(<a href="/reference/android/content/Intent">Intent</a> targetIntent)
      </code>
      
        <p>Returns true if the app should recreate the task when navigating 'up' from this activity
 by using targetIntent.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#showAssist(android.os.Bundle)">showAssist</a>(<a href="/reference/android/os/Bundle">Bundle</a> args)
      </code>
      
        <p>Ask to have the current assistant shown to the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#showDialog(int,%20android.os.Bundle)">showDialog</a>(int id, <a href="/reference/android/os/Bundle">Bundle</a> args)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#showDialog(int)">showDialog</a>(int id)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/app/DialogFragment">DialogFragment</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/FragmentManager">FragmentManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#showLockTaskEscapeMessage()">showLockTaskEscapeMessage</a>()
      </code>
      
        <p>Shows the user the system defined message for telling the user how to exit
 lock task mode.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActionMode(android.view.ActionMode.Callback,%20int)">startActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback, int type)
      </code>
      
        <p>Start an action mode of the given type.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActionMode(android.view.ActionMode.Callback)">startActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback)
      </code>
      
        <p>Start an action mode of the default type <code translate="no" dir="ltr"><a href="/reference/android/view/ActionMode#TYPE_PRIMARY">ActionMode#TYPE_PRIMARY</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch a new activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivities(android.content.Intent[])">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities(android.content.Intent[], android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivity(android.content.Intent)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch a new activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityForResult(android.content.Intent,%20int)">startActivityForResult</a>(<a href="/reference/android/content/Intent">Intent</a> intent, int requestCode)
      </code>
      
        <p>Same as calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivityForResult(android.content.Intent,%20int,%20android.os.Bundle)">startActivityForResult(android.content.Intent, int, android.os.Bundle)</a></code>
 with no options.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityForResult(android.content.Intent,%20int,%20android.os.Bundle)">startActivityForResult</a>(<a href="/reference/android/content/Intent">Intent</a> intent, int requestCode, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch an activity for which you would like a result when it finished.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityFromChild(android.app.Activity,%20android.content.Intent,%20int)">startActivityFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, <a href="/reference/android/content/Intent">Intent</a> intent, int requestCode)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr">androidx.fragment.app.FragmentActivity#startActivityFromFragment(
 androidx.fragment.app.Fragment,Intent,int)</code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityFromChild(android.app.Activity,%20android.content.Intent,%20int,%20android.os.Bundle)">startActivityFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, <a href="/reference/android/content/Intent">Intent</a> intent, int requestCode, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr">androidx.fragment.app.FragmentActivity#startActivityFromFragment(
 androidx.fragment.app.Fragment,Intent,int,Bundle)</code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityFromFragment(android.app.Fragment,%20android.content.Intent,%20int,%20android.os.Bundle)">startActivityFromFragment</a>(<a href="/reference/android/app/Fragment">Fragment</a> fragment, <a href="/reference/android/content/Intent">Intent</a> intent, int requestCode, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Use <code translate="no" dir="ltr">androidx.fragment.app.FragmentActivity#startActivityFromFragment(
 androidx.fragment.app.Fragment,Intent,int,Bundle)</code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" data-version-deprecated="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityFromFragment(android.app.Fragment,%20android.content.Intent,%20int)">startActivityFromFragment</a>(<a href="/reference/android/app/Fragment">Fragment</a> fragment, <a href="/reference/android/content/Intent">Intent</a> intent, int requestCode)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 28.
    Use <code translate="no" dir="ltr">androidx.fragment.app.FragmentActivity#startActivityFromFragment(
 androidx.fragment.app.Fragment,Intent,int)</code></em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityIfNeeded(android.content.Intent,%20int,%20android.os.Bundle)">startActivityIfNeeded</a>(<a href="/reference/android/content/Intent">Intent</a> intent, int requestCode, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>A special variation to launch an activity only if a new activity
 instance is needed to handle the given Intent.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startActivityIfNeeded(android.content.Intent,%20int)">startActivityIfNeeded</a>(<a href="/reference/android/content/Intent">Intent</a> intent, int requestCode)
      </code>
      
        <p>Same as calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivityIfNeeded(android.content.Intent,%20int,%20android.os.Bundle)">startActivityIfNeeded(android.content.Intent, int, android.os.Bundle)</a></code>
 with no options.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)
      </code>
      
        <p>Same as calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)</a></code>
 with no options.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Like <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code>, but taking a IntentSender
 to start; see
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)</a></code>
 for more information.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int)">startIntentSenderForResult</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, int requestCode, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)
      </code>
      
        <p>Same as calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)</a></code> with no options.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSenderForResult</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, int requestCode, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Like <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startActivityForResult(android.content.Intent,%20int)">startActivityForResult(android.content.Intent, int)</a></code>, but allowing you
 to use a IntentSender to describe the activity to be started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSenderFromChild(android.app.Activity,%20android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSenderFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, <a href="/reference/android/content/IntentSender">IntentSender</a> intent, int requestCode, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use
 <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int, android.os.Bundle)</a></code>
 instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startIntentSenderFromChild(android.app.Activity,%20android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int)">startIntentSenderFromChild</a>(<a href="/reference/android/app/Activity">Activity</a> child, <a href="/reference/android/content/IntentSender">IntentSender</a> intent, int requestCode, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startIntentSenderForResult(android.content.IntentSender,%20int,%20android.content.Intent,%20int,%20int,%20int)">startIntentSenderForResult(android.content.IntentSender, int, android.content.Intent, int, int, int)</a></code>
 instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startLocalVoiceInteraction(android.os.Bundle)">startLocalVoiceInteraction</a>(<a href="/reference/android/os/Bundle">Bundle</a> privateOptions)
      </code>
      
        <p>Starts a local voice interaction session.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startLockTask()">startLockTask</a>()
      </code>
      
        <p>Request to put this activity in a mode where the user is locked to a restricted set of
 applications.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startManagingCursor(android.database.Cursor)">startManagingCursor</a>(<a href="/reference/android/database/Cursor">Cursor</a> c)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/content/CursorLoader">CursorLoader</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/LoaderManager">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startNextMatchingActivity(android.content.Intent,%20android.os.Bundle)">startNextMatchingActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Special version of starting an activity, for use when you are replacing
 other activity components.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startNextMatchingActivity(android.content.Intent)">startNextMatchingActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Same as calling <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startNextMatchingActivity(android.content.Intent,%20android.os.Bundle)">startNextMatchingActivity(android.content.Intent, android.os.Bundle)</a></code> with
 no options.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startPostponedEnterTransition()">startPostponedEnterTransition</a>()
      </code>
      
        <p>Begin postponed transitions after <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#postponeEnterTransition()">postponeEnterTransition()</a></code> was called.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#startSearch(java.lang.String,%20boolean,%20android.os.Bundle,%20boolean)">startSearch</a>(<a href="/reference/java/lang/String">String</a> initialQuery, boolean selectInitialQuery, <a href="/reference/android/os/Bundle">Bundle</a> appSearchData, boolean globalSearch)
      </code>
      
        <p>This hook is called to launch the search UI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#stopLocalVoiceInteraction()">stopLocalVoiceInteraction</a>()
      </code>
      
        <p>Request to terminate the current voice interaction that was previously started
 using <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startLocalVoiceInteraction(android.os.Bundle)">startLocalVoiceInteraction(android.os.Bundle)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#stopLockTask()">stopLockTask</a>()
      </code>
      
        <p>Stop the current task from being locked.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#stopManagingCursor(android.database.Cursor)">stopManagingCursor</a>(<a href="/reference/android/database/Cursor">Cursor</a> c)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use the new <code translate="no" dir="ltr"><a href="/reference/android/content/CursorLoader">CursorLoader</a></code> class with
 <code translate="no" dir="ltr"><a href="/reference/android/app/LoaderManager">LoaderManager</a></code> instead; this is also
 available on older platforms through the Android compatibility package.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#takeKeyEvents(boolean)">takeKeyEvents</a>(boolean get)
      </code>
      
        <p>Request that key events come to this activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#triggerSearch(java.lang.String,%20android.os.Bundle)">triggerSearch</a>(<a href="/reference/java/lang/String">String</a> query, <a href="/reference/android/os/Bundle">Bundle</a> appSearchData)
      </code>
      
        <p>Similar to <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#startSearch(java.lang.String,%20boolean,%20android.os.Bundle,%20boolean)">startSearch(String, boolean, Bundle, boolean)</a></code>, but actually fires off the search query after invoking
 the search dialog.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#unregisterActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks)">unregisterActivityLifecycleCallbacks</a>(<a href="/reference/android/app/Application.ActivityLifecycleCallbacks">Application.ActivityLifecycleCallbacks</a> callback)
      </code>
      
        <p>Unregister an <code translate="no" dir="ltr"><a href="/reference/android/app/Application.ActivityLifecycleCallbacks">Application.ActivityLifecycleCallbacks</a></code> previously registered
 with <code translate="no" dir="ltr"><a href="/reference/android/app/Activity#registerActivityLifecycleCallbacks(android.app.Application.ActivityLifecycleCallbacks)">registerActivityLifecycleCallbacks(ActivityLifecycleCallbacks)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#unregisterComponentCallbacks(android.content.ComponentCallbacks)">unregisterComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Remove a <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> object that was previously registered
 with <code translate="no" dir="ltr"><a href="/reference/android/content/ContextWrapper#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks(android.content.ComponentCallbacks)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#unregisterForContextMenu(android.view.View)">unregisterForContextMenu</a>(<a href="/reference/android/view/View">View</a> view)
      </code>
      
        <p>Prevents a context menu to be shown for the given view.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/app/Activity#unregisterScreenCaptureCallback(android.app.Activity.ScreenCaptureCallback)">unregisterScreenCaptureCallback</a>(<a href="/reference/android/app/Activity.ScreenCaptureCallback">Activity.ScreenCaptureCallback</a> callback)
      </code>
      
        <p>Unregisters a screen capture callback for this surface.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/ContextThemeWrapper">android.view.ContextThemeWrapper</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#applyOverrideConfiguration(android.content.res.Configuration)">applyOverrideConfiguration</a>(<a href="/reference/android/content/res/Configuration">Configuration</a> overrideConfiguration)
      </code>
      
        <p>Call to set an "override configuration" on this context -- this is
 a configuration that replies one or more values of the standard
 configuration that is applied to the context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#attachBaseContext(android.content.Context)">attachBaseContext</a>(<a href="/reference/android/content/Context">Context</a> newBase)
      </code>
      
        <p>Set the base context for this ContextWrapper.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/AssetManager">AssetManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#getAssets()">getAssets</a>()
      </code>
      
        <p>Returns an AssetManager instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/Resources">Resources</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#getResources()">getResources</a>()
      </code>
      
        <p>Returns a Resources instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#getSystemService(java.lang.String)">getSystemService</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Return the handle to a system-level service by name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#getTheme()">getTheme</a>()
      </code>
      
        <p>Return the Theme object associated with this Context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#onApplyThemeResource(android.content.res.Resources.Theme,%20int,%20boolean)">onApplyThemeResource</a>(<a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a> theme, int resId, boolean first)
      </code>
      
        <p>Called by <code translate="no" dir="ltr"><a href="/reference/android/view/ContextThemeWrapper#setTheme(android.content.res.Resources.Theme)">setTheme(Theme)</a></code> and <code translate="no" dir="ltr"><a href="/reference/android/view/ContextThemeWrapper#getTheme()">getTheme()</a></code> to apply a theme
 resource to the current Theme object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#setTheme(android.content.res.Resources.Theme)">setTheme</a>(<a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a> theme)
      </code>
      
        <p>Set the configure the current theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/ContextThemeWrapper#setTheme(int)">setTheme</a>(int resid)
      </code>
      
        <p>Set the base theme for this context.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/content/ContextWrapper">android.content.ContextWrapper</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#attachBaseContext(android.content.Context)">attachBaseContext</a>(<a href="/reference/android/content/Context">Context</a> base)
      </code>
      
        <p>Set the base context for this ContextWrapper.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindIsolatedService</a>(<a href="/reference/android/content/Intent">Intent</a> service, int flags, <a href="/reference/java/lang/String">String</a> instanceName, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Variation of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code> that, in the specific case of isolated
 services, allows the caller to generate multiple instances of a service
 from a single component declaration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, int flags, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService(Intent, ServiceConnection, int)</a></code> with executor to control ServiceConnection
 callbacks.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService(android.content.Intent, android.content.ServiceConnection, int)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, int flags)
      </code>
      
        <p>Connects to an application service, creating it if needed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> have been
 granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingOrSelfUriPermission(android.net.Uri,%20int)">checkCallingOrSelfUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingOrSelfUriPermissions(java.util.List<android.net.Uri>,%20int)">checkCallingOrSelfUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int modeFlags)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingPermission(java.lang.String)">checkCallingPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether the calling process of an IPC you are handling has been
 granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingUriPermission(android.net.Uri,%20int)">checkCallingUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Determine whether the calling process and user ID has been
 granted permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkCallingUriPermissions(java.util.List<android.net.Uri>,%20int)">checkCallingUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int modeFlags)
      </code>
      
        <p>Determine whether the calling process and user ID has been
 granted permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkPermission(java.lang.String,%20int,%20int)">checkPermission</a>(<a href="/reference/java/lang/String">String</a> permission, int pid, int uid)
      </code>
      
        <p>Determine whether the given permission is allowed for a particular
 process and user ID running in the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkSelfPermission(java.lang.String)">checkSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether <em>you</em> have been granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int)">checkUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, <a href="/reference/java/lang/String">String</a> readPermission, <a href="/reference/java/lang/String">String</a> writePermission, int pid, int uid, int modeFlags)
      </code>
      
        <p>Check both a Uri and normal permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkUriPermission(android.net.Uri,%20int,%20int,%20int)">checkUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int pid, int uid, int modeFlags)
      </code>
      
        <p>Determine whether a particular process and user ID has been granted
 permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#checkUriPermissions(java.util.List<android.net.Uri>,%20int,%20int,%20int)">checkUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int pid, int uid, int modeFlags)
      </code>
      
        <p>Determine whether a particular process and user ID has been granted
 permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#clearWallpaper()">clearWallpaper</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#clear()">WallpaperManager.clear()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createAttributionContext(java.lang.String)">createAttributionContext</a>(<a href="/reference/java/lang/String">String</a> attributionTag)
      </code>
      
        <p>Return a new Context object for the current Context but attribute to a different tag.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createConfigurationContext(android.content.res.Configuration)">createConfigurationContext</a>(<a href="/reference/android/content/res/Configuration">Configuration</a> overrideConfiguration)
      </code>
      
        <p>Return a new Context object for the current Context but whose resources
 are adjusted to match the given Configuration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createContext(android.content.ContextParams)">createContext</a>(<a href="/reference/android/content/ContextParams">ContextParams</a> contextParams)
      </code>
      
        <p>Creates a context with specific properties and behaviors.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createDeviceContext(int)">createDeviceContext</a>(int deviceId)
      </code>
      
        <p>Returns a new <code translate="no" dir="ltr">Context</code> object from the current context but with device association
 given by the <code translate="no" dir="ltr">deviceId</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createDeviceProtectedStorageContext()">createDeviceProtectedStorageContext</a>()
      </code>
      
        <p>Return a new Context object for the current Context but whose storage
 APIs are backed by device-protected storage.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createDisplayContext(android.view.Display)">createDisplayContext</a>(<a href="/reference/android/view/Display">Display</a> display)
      </code>
      
        <p>Returns a new <code translate="no" dir="ltr">Context</code> object from the current context but with resources
 adjusted to match the metrics of <code translate="no" dir="ltr">display</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createPackageContext(java.lang.String,%20int)">createPackageContext</a>(<a href="/reference/java/lang/String">String</a> packageName, int flags)
      </code>
      
        <p>Return a new Context object for the given application name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createWindowContext(int,%20android.os.Bundle)">createWindowContext</a>(int type, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Creates a Context for a non-activity window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#createWindowContext(android.view.Display,%20int,%20android.os.Bundle)">createWindowContext</a>(<a href="/reference/android/view/Display">Display</a> display, int type, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Creates a <code translate="no" dir="ltr">Context</code> for a non-<code translate="no" dir="ltr"><a href="/reference/android/app/Activity">activity</a></code> window on the given
 <code translate="no" dir="ltr"><a href="/reference/android/view/Display">Display</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#databaseList()">databaseList</a>()
      </code>
      
        <p>Returns an array of strings naming the private databases associated with
 this Context's application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#deleteDatabase(java.lang.String)">deleteDatabase</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete an existing private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#deleteFile(java.lang.String)">deleteFile</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete the given private file associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#deleteSharedPreferences(java.lang.String)">deleteSharedPreferences</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete an existing shared preferences file.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceCallingOrSelfPermission(java.lang.String,%20java.lang.String)">enforceCallingOrSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If neither you nor the calling process of an IPC you are
 handling has been granted a particular permission, throw a
 <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceCallingOrSelfUriPermission(android.net.Uri,%20int,%20java.lang.String)">enforceCallingOrSelfUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process of an IPC <em>or you</em> has not been
 granted permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceCallingPermission(java.lang.String,%20java.lang.String)">enforceCallingPermission</a>(<a href="/reference/java/lang/String">String</a> permission, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process of an IPC you are handling has not been
 granted a particular permission, throw a <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceCallingUriPermission(android.net.Uri,%20int,%20java.lang.String)">enforceCallingUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process and user ID has not been granted
 permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforcePermission(java.lang.String,%20int,%20int,%20java.lang.String)">enforcePermission</a>(<a href="/reference/java/lang/String">String</a> permission, int pid, int uid, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the given permission is not allowed for a particular process
 and user ID running in the system, throw a <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20java.lang.String)">enforceUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, <a href="/reference/java/lang/String">String</a> readPermission, <a href="/reference/java/lang/String">String</a> writePermission, int pid, int uid, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>Enforce both a Uri and normal permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#enforceUriPermission(android.net.Uri,%20int,%20int,%20int,%20java.lang.String)">enforceUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int pid, int uid, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If a particular process and user ID has not been granted
 permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#fileList()">fileList</a>()
      </code>
      
        <p>Returns an array of strings naming the private files associated with
 this Context's application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getApplicationContext()">getApplicationContext</a>()
      </code>
      
        <p>Return the context of the single, global Application object of the
 current process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/pm/ApplicationInfo">ApplicationInfo</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getApplicationInfo()">getApplicationInfo</a>()
      </code>
      
        <p>Return the full application info for this context's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/AssetManager">AssetManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getAssets()">getAssets</a>()
      </code>
      
        <p>Returns an AssetManager instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/AttributionSource">AttributionSource</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getAttributionSource()">getAttributionSource</a>()
      </code>
      
        <p>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getBaseContext()">getBaseContext</a>()
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getCacheDir()">getCacheDir</a>()
      </code>
      
        <p>Returns the absolute path to the application specific cache directory on
 the filesystem.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/ClassLoader">ClassLoader</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getClassLoader()">getClassLoader</a>()
      </code>
      
        <p>Return a class loader you can use to retrieve classes in this package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getCodeCacheDir()">getCodeCacheDir</a>()
      </code>
      
        <p>Returns the absolute path to the application specific cache directory on
 the filesystem designed for storing cached code.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ContentResolver">ContentResolver</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getContentResolver()">getContentResolver</a>()
      </code>
      
        <p>Return a ContentResolver instance for your application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getDataDir()">getDataDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem where all
 private files belonging to this app are stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getDatabasePath(java.lang.String)">getDatabasePath</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Returns the absolute path on the filesystem where a database created with
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase(String, int, CursorFactory)</a></code> is stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getDeviceId()">getDeviceId</a>()
      </code>
      
        <p>Gets the device ID this context is associated with.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getDir(java.lang.String,%20int)">getDir</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Retrieve, creating if needed, a new directory in which the application
 can place its own custom data files.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/Display">Display</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getDisplay()">getDisplay</a>()
      </code>
      
        <p>Get the display this context is associated with.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getExternalCacheDir()">getExternalCacheDir</a>()
      </code>
      
        <p>Returns absolute path to application-specific directory on the primary
 shared/external storage device where the application can place cache
 files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getExternalCacheDirs()">getExternalCacheDirs</a>()
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application can place cache
 files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a>(<a href="/reference/java/lang/String">String</a> type)
      </code>
      
        <p>Returns the absolute path to the directory on the primary shared/external
 storage device where the application can place persistent files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getExternalFilesDirs(java.lang.String)">getExternalFilesDirs</a>(<a href="/reference/java/lang/String">String</a> type)
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application can place
 persistent files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getExternalMediaDirs()">getExternalMediaDirs</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    These directories still exist and are scanned, but developers
             are encouraged to migrate to inserting content into a
             <code translate="no" dir="ltr"><a href="/reference/android/provider/MediaStore">MediaStore</a></code> collection directly, as any app can
             contribute new media to <code translate="no" dir="ltr"><a href="/reference/android/provider/MediaStore">MediaStore</a></code> with no
             permissions required, starting in
             <code translate="no" dir="ltr"><a href="/reference/android/os/Build.VERSION_CODES#Q">Build.VERSION_CODES.Q</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getFileStreamPath(java.lang.String)">getFileStreamPath</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Returns the absolute path on the filesystem where a file created with
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput(String, int)</a></code> is stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getFilesDir()">getFilesDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem where files
 created with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput(String, int)</a></code> are stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/util/concurrent/Executor">Executor</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getMainExecutor()">getMainExecutor</a>()
      </code>
      
        <p>Return an <code translate="no" dir="ltr"><a href="/reference/java/util/concurrent/Executor">Executor</a></code> that will run enqueued tasks on the main
 thread associated with this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/os/Looper">Looper</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getMainLooper()">getMainLooper</a>()
      </code>
      
        <p>Return the Looper for the main thread of the current process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getNoBackupFilesDir()">getNoBackupFilesDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem similar to
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getFilesDir()">getFilesDir()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getObbDir()">getObbDir</a>()
      </code>
      
        <p>Return the primary shared/external storage directory where this
 application's OBB files (if there are any) can be found.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getObbDirs()">getObbDirs</a>()
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application's OBB files (if
 there are any) can be found.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getPackageCodePath()">getPackageCodePath</a>()
      </code>
      
        <p>Return the full path to this context's primary Android package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/pm/PackageManager">PackageManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getPackageManager()">getPackageManager</a>()
      </code>
      
        <p>Return PackageManager instance to find global package information.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getPackageName()">getPackageName</a>()
      </code>
      
        <p>Return the name of this application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getPackageResourcePath()">getPackageResourcePath</a>()
      </code>
      
        <p>Return the full path to this context's primary Android package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ContextParams">ContextParams</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getParams()">getParams</a>()
      </code>
      
        <p>Return the set of parameters which this Context was created with, if it
 was created via <code translate="no" dir="ltr"><a href="/reference/android/content/Context#createContext(android.content.ContextParams)">createContext(android.content.ContextParams)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/Resources">Resources</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getResources()">getResources</a>()
      </code>
      
        <p>Returns a Resources instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/SharedPreferences">SharedPreferences</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getSharedPreferences(java.lang.String,%20int)">getSharedPreferences</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Retrieve and hold the contents of the preferences file 'name', returning
 a SharedPreferences through which you can retrieve and modify its
 values.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getSystemService(java.lang.String)">getSystemService</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Return the handle to a system-level service by name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getSystemServiceName(java.lang.Class<?>)">getSystemServiceName</a>(<a href="/reference/java/lang/Class">Class</a>&lt;?&gt; serviceClass)
      </code>
      
        <p>Gets the name of the system-level service that is represented by the specified class.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getTheme()">getTheme</a>()
      </code>
      
        <p>Return the Theme object associated with this Context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/graphics/drawable/Drawable">Drawable</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getWallpaper()">getWallpaper</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDrawable()">WallpaperManager.get()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeight</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDesiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDesiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission</a>(<a href="/reference/java/lang/String">String</a> toPackage, <a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Grant permission to access a specific Uri to another package, regardless
 of whether that package has general permission to access the Uri's
 content provider.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#isDeviceProtectedStorage()">isDeviceProtectedStorage</a>()
      </code>
      
        <p>Indicates if the storage APIs of this Context are backed by
 device-protected storage.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#isRestricted()">isRestricted</a>()
      </code>
      
        <p>Indicates whether this Context is restricted.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#moveDatabaseFrom(android.content.Context,%20java.lang.String)">moveDatabaseFrom</a>(<a href="/reference/android/content/Context">Context</a> sourceContext, <a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Move an existing database file from the given source storage context to
 this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#moveSharedPreferencesFrom(android.content.Context,%20java.lang.String)">moveSharedPreferencesFrom</a>(<a href="/reference/android/content/Context">Context</a> sourceContext, <a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Move an existing shared preferences file from the given source storage
 context to this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/FileInputStream">FileInputStream</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#openFileInput(java.lang.String)">openFileInput</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Open a private file associated with this Context's application package
 for reading.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/io/FileOutputStream">FileOutputStream</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#openFileOutput(java.lang.String,%20int)">openFileOutput</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Open a private file associated with this Context's application package
 for writing.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/database/sqlite/SQLiteDatabase">SQLiteDatabase</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20android.database.DatabaseErrorHandler)">openOrCreateDatabase</a>(<a href="/reference/java/lang/String">String</a> name, int mode, <a href="/reference/android/database/sqlite/SQLiteDatabase.CursorFactory">SQLiteDatabase.CursorFactory</a> factory, <a href="/reference/android/database/DatabaseErrorHandler">DatabaseErrorHandler</a> errorHandler)
      </code>
      
        <p>Open a new private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/database/sqlite/SQLiteDatabase">SQLiteDatabase</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase</a>(<a href="/reference/java/lang/String">String</a> name, int mode, <a href="/reference/android/database/sqlite/SQLiteDatabase.CursorFactory">SQLiteDatabase.CursorFactory</a> factory)
      </code>
      
        <p>Open a new private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/graphics/drawable/Drawable">Drawable</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#peekWallpaper()">peekWallpaper</a>()
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#peekDrawable()">WallpaperManager.peek()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Add a new <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> to the base application of the
 Context, which will be called at the same times as the ComponentCallbacks
 methods of activities and other components are called.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerDeviceIdChangeListener(java.util.concurrent.Executor,%20java.util.function.IntConsumer)">registerDeviceIdChangeListener</a>(<a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/java/util/function/IntConsumer">IntConsumer</a> listener)
      </code>
      
        <p>Adds a new device ID changed listener to the <code translate="no" dir="ltr">Context</code>, which will be called when
 the device association is changed by the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter)
      </code>
      
        <p>Register a BroadcastReceiver to be run in the main activity thread.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20int)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, int flags)
      </code>
      
        <p>Register to receive intent broadcasts, with the receiver optionally being
 exposed to Instant Apps.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler,%20int)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, <a href="/reference/java/lang/String">String</a> broadcastPermission, <a href="/reference/android/os/Handler">Handler</a> scheduler, int flags)
      </code>
      
        <p>Register to receive intent broadcasts, to run in the context of
 <var translate="no">scheduler</var>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, <a href="/reference/java/lang/String">String</a> broadcastPermission, <a href="/reference/android/os/Handler">Handler</a> scheduler)
      </code>
      
        <p>Register to receive intent broadcasts, to run in the context of
 <var translate="no">scheduler</var>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#removeStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">removeStickyBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#revokeSelfPermissionsOnKill(java.util.Collection<java.lang.String>)">revokeSelfPermissionsOnKill</a>(<a href="/reference/java/util/Collection">Collection</a>&lt;<a href="/reference/java/lang/String">String</a>&gt; permissions)
      </code>
      
        <p>Triggers the revocation of one or more permissions for the calling package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#revokeUriPermission(android.net.Uri,%20int)">revokeUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Remove all permissions to access a particular content provider Uri
 that were previously added with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission(String, Uri, int)</a></code> or <em>any other</em> mechanism.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#revokeUriPermission(java.lang.String,%20android.net.Uri,%20int)">revokeUriPermission</a>(<a href="/reference/java/lang/String">String</a> targetPackage, <a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Remove permissions to access a particular content provider Uri
 that were previously added with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission(String, Uri, int)</a></code> for a specific target
 package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent,%20java.lang.String)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendBroadcast(android.content.Intent)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">sendBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String)">sendBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String)">sendBroadcast(android.content.Intent, java.lang.String)</a></code> that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/java/lang/String">String</a> receiverAppOp, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)</a></code> that allows you to specify the App Op to enforce restrictions on which receivers
 the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20int,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20java.lang.String,%20android.os.Bundle,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, int initialCode, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/java/lang/String">String</a> receiverAppOp, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to
 receive data back from the broadcast.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to
 receive data back from the broadcast.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcast(android.content.Intent,%20java.lang.String)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendStickyBroadcast(android.content.Intent,%20android.os.Bundle)">sendStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">sendStickyBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendStickyOrderedBroadcast(android.content.Intent,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendStickyOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#sendStickyOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p><em>
      This method is deprecated.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#setTheme(int)">setTheme</a>(int resid)
      </code>
      
        <p>Set the base theme for this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#setWallpaper(android.graphics.Bitmap)">setWallpaper</a>(<a href="/reference/android/graphics/Bitmap">Bitmap</a> bitmap)
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#setWallpaper(java.io.InputStream)">setWallpaper</a>(<a href="/reference/java/io/InputStream">InputStream</a> data)
      </code>
      
        <p><em>
      This method is deprecated.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#setStream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch multiple new activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startActivities(android.content.Intent[])">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities(android.content.Intent[], android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startActivity(android.content.Intent)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch a new activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startForegroundService(android.content.Intent)">startForegroundService</a>(<a href="/reference/android/content/Intent">Intent</a> service)
      </code>
      
        <p>Similar to <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startService(android.content.Intent)">startService(android.content.Intent)</a></code>, but with an implicit promise that the
 Service will call <code translate="no" dir="ltr"><a href="/reference/android/app/Service#startForeground(int,%20android.app.Notification)">startForeground(int, android.app.Notification)</a></code> once it begins running.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startInstrumentation(android.content.ComponentName,%20java.lang.String,%20android.os.Bundle)">startInstrumentation</a>(<a href="/reference/android/content/ComponentName">ComponentName</a> className, <a href="/reference/java/lang/String">String</a> profileFile, <a href="/reference/android/os/Bundle">Bundle</a> arguments)
      </code>
      
        <p>Start executing an <code translate="no" dir="ltr"><a href="/reference/android/app/Instrumentation">Instrumentation</a></code> class.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)</a></code>
 with no options specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Like <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code>, but taking a IntentSender
 to start.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#startService(android.content.Intent)">startService</a>(<a href="/reference/android/content/Intent">Intent</a> service)
      </code>
      
        <p>Request that a given application service be started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#stopService(android.content.Intent)">stopService</a>(<a href="/reference/android/content/Intent">Intent</a> name)
      </code>
      
        <p>Request that a given application service be stopped.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#unbindService(android.content.ServiceConnection)">unbindService</a>(<a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Disconnect from an application service.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#unregisterComponentCallbacks(android.content.ComponentCallbacks)">unregisterComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Remove a <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> object that was previously registered
 with <code translate="no" dir="ltr"><a href="/reference/android/content/ContextWrapper#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks(android.content.ComponentCallbacks)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#unregisterDeviceIdChangeListener(java.util.function.IntConsumer)">unregisterDeviceIdChangeListener</a>(<a href="/reference/java/util/function/IntConsumer">IntConsumer</a> listener)
      </code>
      
        <p>Removes a device ID changed listener from the Context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver)
      </code>
      
        <p>Unregister a previously registered BroadcastReceiver.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ContextWrapper#updateServiceGroup(android.content.ServiceConnection,%20int,%20int)">updateServiceGroup</a>(<a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, int group, int importance)
      </code>
      
        <p>For a service previously bound with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code> or a related method, change
 how the system manages that service's process in relation to other processes.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/content/Context">android.content.Context</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindIsolatedService</a>(<a href="/reference/android/content/Intent">Intent</a> service, int flags, <a href="/reference/java/lang/String">String</a> instanceName, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Variation of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code> that, in the specific case of isolated
 services, allows the caller to generate multiple instances of a service
 from a single component declaration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindIsolatedService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags, <a href="/reference/java/lang/String">String</a> instanceName, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindIsolatedService(android.content.Intent,%20int,%20java.lang.String,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindIsolatedService(android.content.Intent, int, java.lang.String, java.util.concurrent.Executor, android.content.ServiceConnection)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, int flags, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService(Intent, ServiceConnection, int)</a></code> with executor to control ServiceConnection
 callbacks.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService(android.content.Intent, android.content.ServiceConnection, int)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.ServiceConnection,%20int)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, int flags)
      </code>
      
        <p>Connects to an application service, creating it if needed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags, <a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20int,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(android.content.Intent, int, java.util.concurrent.Executor, android.content.ServiceConnection)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20int,%20android.os.UserHandle)">bindServiceAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, int flags, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p>Binds to a service in the given <code translate="no" dir="ltr">user</code> in the same manner as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20android.content.Context.BindServiceFlags,%20android.os.UserHandle)">bindServiceAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> service, <a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, <a href="/reference/android/content/Context.BindServiceFlags">Context.BindServiceFlags</a> flags, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p>See <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindServiceAsUser(android.content.Intent,%20android.content.ServiceConnection,%20int,%20android.os.UserHandle)">bindServiceAsUser(android.content.Intent, android.content.ServiceConnection, int, android.os.UserHandle)</a></code>
 Call <code translate="no" dir="ltr"><a href="/reference/android/content/Context.BindServiceFlags#of(long)">BindServiceFlags#of(long)</a></code> to obtain a BindServiceFlags object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingOrSelfPermission(java.lang.String)">checkCallingOrSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> have been
 granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingOrSelfUriPermission(android.net.Uri,%20int)">checkCallingOrSelfUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingOrSelfUriPermissions(java.util.List<android.net.Uri>,%20int)">checkCallingOrSelfUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int modeFlags)
      </code>
      
        <p>Determine whether the calling process of an IPC <em>or you</em> has been granted
 permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingPermission(java.lang.String)">checkCallingPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether the calling process of an IPC you are handling has been
 granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingUriPermission(android.net.Uri,%20int)">checkCallingUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Determine whether the calling process and user ID has been
 granted permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkCallingUriPermissions(java.util.List<android.net.Uri>,%20int)">checkCallingUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int modeFlags)
      </code>
      
        <p>Determine whether the calling process and user ID has been
 granted permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkPermission(java.lang.String,%20int,%20int)">checkPermission</a>(<a href="/reference/java/lang/String">String</a> permission, int pid, int uid)
      </code>
      
        <p>Determine whether the given permission is allowed for a particular
 process and user ID running in the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkSelfPermission(java.lang.String)">checkSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission)
      </code>
      
        <p>Determine whether <em>you</em> have been granted a particular permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int)">checkUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, <a href="/reference/java/lang/String">String</a> readPermission, <a href="/reference/java/lang/String">String</a> writePermission, int pid, int uid, int modeFlags)
      </code>
      
        <p>Check both a Uri and normal permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkUriPermission(android.net.Uri,%20int,%20int,%20int)">checkUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int pid, int uid, int modeFlags)
      </code>
      
        <p>Determine whether a particular process and user ID has been granted
 permission to access a specific URI.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int[]</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#checkUriPermissions(java.util.List<android.net.Uri>,%20int,%20int,%20int)">checkUriPermissions</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/net/Uri">Uri</a>&gt; uris, int pid, int uid, int modeFlags)
      </code>
      
        <p>Determine whether a particular process and user ID has been granted
 permission to access a list of URIs.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#clearWallpaper()">clearWallpaper</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#clear()">WallpaperManager.clear()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createAttributionContext(java.lang.String)">createAttributionContext</a>(<a href="/reference/java/lang/String">String</a> attributionTag)
      </code>
      
        <p>Return a new Context object for the current Context but attribute to a different tag.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createConfigurationContext(android.content.res.Configuration)">createConfigurationContext</a>(<a href="/reference/android/content/res/Configuration">Configuration</a> overrideConfiguration)
      </code>
      
        <p>Return a new Context object for the current Context but whose resources
 are adjusted to match the given Configuration.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createContext(android.content.ContextParams)">createContext</a>(<a href="/reference/android/content/ContextParams">ContextParams</a> contextParams)
      </code>
      
        <p>Creates a context with specific properties and behaviors.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createContextForSplit(java.lang.String)">createContextForSplit</a>(<a href="/reference/java/lang/String">String</a> splitName)
      </code>
      
        <p>Return a new Context object for the given split name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createDeviceContext(int)">createDeviceContext</a>(int deviceId)
      </code>
      
        <p>Returns a new <code translate="no" dir="ltr">Context</code> object from the current context but with device association
 given by the <code translate="no" dir="ltr">deviceId</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createDeviceProtectedStorageContext()">createDeviceProtectedStorageContext</a>()
      </code>
      
        <p>Return a new Context object for the current Context but whose storage
 APIs are backed by device-protected storage.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createDisplayContext(android.view.Display)">createDisplayContext</a>(<a href="/reference/android/view/Display">Display</a> display)
      </code>
      
        <p>Returns a new <code translate="no" dir="ltr">Context</code> object from the current context but with resources
 adjusted to match the metrics of <code translate="no" dir="ltr">display</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createPackageContext(java.lang.String,%20int)">createPackageContext</a>(<a href="/reference/java/lang/String">String</a> packageName, int flags)
      </code>
      
        <p>Return a new Context object for the given application name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createWindowContext(int,%20android.os.Bundle)">createWindowContext</a>(int type, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Creates a Context for a non-activity window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#createWindowContext(android.view.Display,%20int,%20android.os.Bundle)">createWindowContext</a>(<a href="/reference/android/view/Display">Display</a> display, int type, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Creates a <code translate="no" dir="ltr">Context</code> for a non-<code translate="no" dir="ltr"><a href="/reference/android/app/Activity">activity</a></code> window on the given
 <code translate="no" dir="ltr"><a href="/reference/android/view/Display">Display</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#databaseList()">databaseList</a>()
      </code>
      
        <p>Returns an array of strings naming the private databases associated with
 this Context's application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#deleteDatabase(java.lang.String)">deleteDatabase</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete an existing private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#deleteFile(java.lang.String)">deleteFile</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete the given private file associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#deleteSharedPreferences(java.lang.String)">deleteSharedPreferences</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Delete an existing shared preferences file.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceCallingOrSelfPermission(java.lang.String,%20java.lang.String)">enforceCallingOrSelfPermission</a>(<a href="/reference/java/lang/String">String</a> permission, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If neither you nor the calling process of an IPC you are
 handling has been granted a particular permission, throw a
 <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceCallingOrSelfUriPermission(android.net.Uri,%20int,%20java.lang.String)">enforceCallingOrSelfUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process of an IPC <em>or you</em> has not been
 granted permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceCallingPermission(java.lang.String,%20java.lang.String)">enforceCallingPermission</a>(<a href="/reference/java/lang/String">String</a> permission, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process of an IPC you are handling has not been
 granted a particular permission, throw a <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceCallingUriPermission(android.net.Uri,%20int,%20java.lang.String)">enforceCallingUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the calling process and user ID has not been granted
 permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforcePermission(java.lang.String,%20int,%20int,%20java.lang.String)">enforcePermission</a>(<a href="/reference/java/lang/String">String</a> permission, int pid, int uid, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If the given permission is not allowed for a particular process
 and user ID running in the system, throw a <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceUriPermission(android.net.Uri,%20java.lang.String,%20java.lang.String,%20int,%20int,%20int,%20java.lang.String)">enforceUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, <a href="/reference/java/lang/String">String</a> readPermission, <a href="/reference/java/lang/String">String</a> writePermission, int pid, int uid, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>Enforce both a Uri and normal permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#enforceUriPermission(android.net.Uri,%20int,%20int,%20int,%20java.lang.String)">enforceUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int pid, int uid, int modeFlags, <a href="/reference/java/lang/String">String</a> message)
      </code>
      
        <p>If a particular process and user ID has not been granted
 permission to access a specific URI, throw <code translate="no" dir="ltr"><a href="/reference/java/lang/SecurityException">SecurityException</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#fileList()">fileList</a>()
      </code>
      
        <p>Returns an array of strings naming the private files associated with
 this Context's application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Context">Context</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getApplicationContext()">getApplicationContext</a>()
      </code>
      
        <p>Return the context of the single, global Application object of the
 current process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/pm/ApplicationInfo">ApplicationInfo</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getApplicationInfo()">getApplicationInfo</a>()
      </code>
      
        <p>Return the full application info for this context's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/res/AssetManager">AssetManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getAssets()">getAssets</a>()
      </code>
      
        <p>Returns an AssetManager instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/AttributionSource">AttributionSource</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getAttributionSource()">getAttributionSource</a>()
      </code>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getAttributionTag()">getAttributionTag</a>()
      </code>
      
        <p><p>Attribution can be used in complex apps to logically separate parts of the app.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getCacheDir()">getCacheDir</a>()
      </code>
      
        <p>Returns the absolute path to the application specific cache directory on
 the filesystem.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/ClassLoader">ClassLoader</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getClassLoader()">getClassLoader</a>()
      </code>
      
        <p>Return a class loader you can use to retrieve classes in this package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getCodeCacheDir()">getCodeCacheDir</a>()
      </code>
      
        <p>Returns the absolute path to the application specific cache directory on
 the filesystem designed for storing cached code.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getColor(int)">getColor</a>(int id)
      </code>
      
        <p>Returns a color associated with a particular resource ID and styled for
 the current theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/content/res/ColorStateList">ColorStateList</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getColorStateList(int)">getColorStateList</a>(int id)
      </code>
      
        <p>Returns a color state list associated with a particular resource ID and
 styled for the current theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/ContentResolver">ContentResolver</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getContentResolver()">getContentResolver</a>()
      </code>
      
        <p>Return a ContentResolver instance for your application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDataDir()">getDataDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem where all
 private files belonging to this app are stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDatabasePath(java.lang.String)">getDatabasePath</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Returns the absolute path on the filesystem where a database created with
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase(String, int, CursorFactory)</a></code> is stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDeviceId()">getDeviceId</a>()
      </code>
      
        <p>Gets the device ID this context is associated with.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDir(java.lang.String,%20int)">getDir</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Retrieve, creating if needed, a new directory in which the application
 can place its own custom data files.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/view/Display">Display</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDisplay()">getDisplay</a>()
      </code>
      
        <p>Get the display this context is associated with.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/graphics/drawable/Drawable">Drawable</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getDrawable(int)">getDrawable</a>(int id)
      </code>
      
        <p>Returns a drawable object associated with a particular resource ID and
 styled for the current theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getExternalCacheDir()">getExternalCacheDir</a>()
      </code>
      
        <p>Returns absolute path to application-specific directory on the primary
 shared/external storage device where the application can place cache
 files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getExternalCacheDirs()">getExternalCacheDirs</a>()
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application can place cache
 files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getExternalFilesDir(java.lang.String)">getExternalFilesDir</a>(<a href="/reference/java/lang/String">String</a> type)
      </code>
      
        <p>Returns the absolute path to the directory on the primary shared/external
 storage device where the application can place persistent files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getExternalFilesDirs(java.lang.String)">getExternalFilesDirs</a>(<a href="/reference/java/lang/String">String</a> type)
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application can place
 persistent files it owns.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" data-version-deprecated="30" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getExternalMediaDirs()">getExternalMediaDirs</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 30.
    These directories still exist and are scanned, but developers
             are encouraged to migrate to inserting content into a
             <code translate="no" dir="ltr"><a href="/reference/android/provider/MediaStore">MediaStore</a></code> collection directly, as any app can
             contribute new media to <code translate="no" dir="ltr"><a href="/reference/android/provider/MediaStore">MediaStore</a></code> with no
             permissions required, starting in
             <code translate="no" dir="ltr"><a href="/reference/android/os/Build.VERSION_CODES#Q">Build.VERSION_CODES.Q</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getFileStreamPath(java.lang.String)">getFileStreamPath</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Returns the absolute path on the filesystem where a file created with
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput(String, int)</a></code> is stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getFilesDir()">getFilesDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem where files
 created with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput(String, int)</a></code> are stored.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="28" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/util/concurrent/Executor">Executor</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getMainExecutor()">getMainExecutor</a>()
      </code>
      
        <p>Return an <code translate="no" dir="ltr"><a href="/reference/java/util/concurrent/Executor">Executor</a></code> that will run enqueued tasks on the main
 thread associated with this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/os/Looper">Looper</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getMainLooper()">getMainLooper</a>()
      </code>
      
        <p>Return the Looper for the main thread of the current process.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getNoBackupFilesDir()">getNoBackupFilesDir</a>()
      </code>
      
        <p>Returns the absolute path to the directory on the filesystem similar to
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#getFilesDir()">getFilesDir()</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getObbDir()">getObbDir</a>()
      </code>
      
        <p>Return the primary shared/external storage directory where this
 application's OBB files (if there are any) can be found.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="19" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/File">File[]</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getObbDirs()">getObbDirs</a>()
      </code>
      
        <p>Returns absolute paths to application-specific directories on all
 shared/external storage devices where the application's OBB files (if
 there are any) can be found.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getOpPackageName()">getOpPackageName</a>()
      </code>
      
        <p>Return the package name that should be used for <code translate="no" dir="ltr"><a href="/reference/android/app/AppOpsManager">AppOpsManager</a></code> calls from
 this context, so that app ops manager's uid verification will work with the name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getPackageCodePath()">getPackageCodePath</a>()
      </code>
      
        <p>Return the full path to this context's primary Android package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/pm/PackageManager">PackageManager</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getPackageManager()">getPackageManager</a>()
      </code>
      
        <p>Return PackageManager instance to find global package information.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getPackageName()">getPackageName</a>()
      </code>
      
        <p>Return the name of this application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="8" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getPackageResourcePath()">getPackageResourcePath</a>()
      </code>
      
        <p>Return the full path to this context's primary Android package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/android/content/ContextParams">ContextParams</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getParams()">getParams</a>()
      </code>
      
        <p>Return the set of parameters which this Context was created with, if it
 was created via <code translate="no" dir="ltr"><a href="/reference/android/content/Context#createContext(android.content.ContextParams)">createContext(android.content.ContextParams)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/res/Resources">Resources</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getResources()">getResources</a>()
      </code>
      
        <p>Returns a Resources instance for the application's package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/SharedPreferences">SharedPreferences</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getSharedPreferences(java.lang.String,%20int)">getSharedPreferences</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Retrieve and hold the contents of the preferences file 'name', returning
 a SharedPreferences through which you can retrieve and modify its
 values.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getString(int)">getString</a>(int resId)
      </code>
      
        <p>Returns a localized string from the application's package's
 default string table.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getString(int,%20java.lang.Object[])">getString</a>(int resId, <a href="/reference/java/lang/Object">Object...</a> formatArgs)
      </code>
      
        <p>Returns a localized formatted string from the application's package's
 default string table, substituting the format arguments as defined in
 <code translate="no" dir="ltr"><a href="/reference/java/util/Formatter">Formatter</a></code> and <code translate="no" dir="ltr"><a href="/reference/java/lang/String#format(java.lang.String,%20java.lang.Object[])">String.format(String, Object)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        &lt;T&gt;
        T</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getSystemService(java.lang.Class<T>)">getSystemService</a>(<a href="/reference/java/lang/Class">Class</a>&lt;T&gt; serviceClass)
      </code>
      
        <p>Return the handle to a system-level service by class.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getSystemService(java.lang.String)">getSystemService</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Return the handle to a system-level service by name.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getSystemServiceName(java.lang.Class<?>)">getSystemServiceName</a>(<a href="/reference/java/lang/Class">Class</a>&lt;?&gt; serviceClass)
      </code>
      
        <p>Gets the name of the system-level service that is represented by the specified class.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/CharSequence">CharSequence</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getText(int)">getText</a>(int resId)
      </code>
      
        <p>Return a localized, styled CharSequence from the application's package's
 default string table.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/res/Resources.Theme">Resources.Theme</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getTheme()">getTheme</a>()
      </code>
      
        <p>Return the Theme object associated with this Context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/graphics/drawable/Drawable">Drawable</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getWallpaper()">getWallpaper</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDrawable()">WallpaperManager.get()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getWallpaperDesiredMinimumHeight()">getWallpaperDesiredMinimumHeight</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDesiredMinimumHeight()">WallpaperManager.getDesiredMinimumHeight()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#getWallpaperDesiredMinimumWidth()">getWallpaperDesiredMinimumWidth</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#getDesiredMinimumWidth()">WallpaperManager.getDesiredMinimumWidth()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission</a>(<a href="/reference/java/lang/String">String</a> toPackage, <a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Grant permission to access a specific Uri to another package, regardless
 of whether that package has general permission to access the Uri's
 content provider.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#isDeviceProtectedStorage()">isDeviceProtectedStorage</a>()
      </code>
      
        <p>Indicates if the storage APIs of this Context are backed by
 device-protected storage.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#isRestricted()">isRestricted</a>()
      </code>
      
        <p>Indicates whether this Context is restricted.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#isUiContext()">isUiContext</a>()
      </code>
      
        <p>Returns <code translate="no" dir="ltr">true</code> if the context is a UI context which can access UI components such as
 <code translate="no" dir="ltr"><a href="/reference/android/view/WindowManager">WindowManager</a></code>, <code translate="no" dir="ltr"><a href="/reference/android/view/LayoutInflater">LayoutInflater</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager">WallpaperManager</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#moveDatabaseFrom(android.content.Context,%20java.lang.String)">moveDatabaseFrom</a>(<a href="/reference/android/content/Context">Context</a> sourceContext, <a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Move an existing database file from the given source storage context to
 this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#moveSharedPreferencesFrom(android.content.Context,%20java.lang.String)">moveSharedPreferencesFrom</a>(<a href="/reference/android/content/Context">Context</a> sourceContext, <a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Move an existing shared preferences file from the given source storage
 context to this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/content/res/TypedArray">TypedArray</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#obtainStyledAttributes(android.util.AttributeSet,%20int[])">obtainStyledAttributes</a>(<a href="/reference/android/util/AttributeSet">AttributeSet</a> set, int[] attrs)
      </code>
      
        <p>Retrieve styled attribute information in this Context's theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/content/res/TypedArray">TypedArray</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#obtainStyledAttributes(android.util.AttributeSet,%20int[],%20int,%20int)">obtainStyledAttributes</a>(<a href="/reference/android/util/AttributeSet">AttributeSet</a> set, int[] attrs, int defStyleAttr, int defStyleRes)
      </code>
      
        <p>Retrieve styled attribute information in this Context's theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/content/res/TypedArray">TypedArray</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#obtainStyledAttributes(int,%20int[])">obtainStyledAttributes</a>(int resid, int[] attrs)
      </code>
      
        <p>Retrieve styled attribute information in this Context's theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/android/content/res/TypedArray">TypedArray</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#obtainStyledAttributes(int[])">obtainStyledAttributes</a>(int[] attrs)
      </code>
      
        <p>Retrieve styled attribute information in this Context's theme.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/FileInputStream">FileInputStream</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#openFileInput(java.lang.String)">openFileInput</a>(<a href="/reference/java/lang/String">String</a> name)
      </code>
      
        <p>Open a private file associated with this Context's application package
 for reading.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/java/io/FileOutputStream">FileOutputStream</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#openFileOutput(java.lang.String,%20int)">openFileOutput</a>(<a href="/reference/java/lang/String">String</a> name, int mode)
      </code>
      
        <p>Open a private file associated with this Context's application package
 for writing.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/database/sqlite/SQLiteDatabase">SQLiteDatabase</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory,%20android.database.DatabaseErrorHandler)">openOrCreateDatabase</a>(<a href="/reference/java/lang/String">String</a> name, int mode, <a href="/reference/android/database/sqlite/SQLiteDatabase.CursorFactory">SQLiteDatabase.CursorFactory</a> factory, <a href="/reference/android/database/DatabaseErrorHandler">DatabaseErrorHandler</a> errorHandler)
      </code>
      
        <p>Open a new private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/database/sqlite/SQLiteDatabase">SQLiteDatabase</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#openOrCreateDatabase(java.lang.String,%20int,%20android.database.sqlite.SQLiteDatabase.CursorFactory)">openOrCreateDatabase</a>(<a href="/reference/java/lang/String">String</a> name, int mode, <a href="/reference/android/database/sqlite/SQLiteDatabase.CursorFactory">SQLiteDatabase.CursorFactory</a> factory)
      </code>
      
        <p>Open a new private SQLiteDatabase associated with this Context's
 application package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/graphics/drawable/Drawable">Drawable</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#peekWallpaper()">peekWallpaper</a>()
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#peekDrawable()">WallpaperManager.peek()</a></code> instead.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Add a new <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> to the base application of the
 Context, which will be called at the same times as the ComponentCallbacks
 methods of activities and other components are called.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerDeviceIdChangeListener(java.util.concurrent.Executor,%20java.util.function.IntConsumer)">registerDeviceIdChangeListener</a>(<a href="/reference/java/util/concurrent/Executor">Executor</a> executor, <a href="/reference/java/util/function/IntConsumer">IntConsumer</a> listener)
      </code>
      
        <p>Adds a new device ID changed listener to the <code translate="no" dir="ltr">Context</code>, which will be called when
 the device association is changed by the system.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter)
      </code>
      
        <p>Register a BroadcastReceiver to be run in the main activity thread.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20int)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, int flags)
      </code>
      
        <p>Register to receive intent broadcasts, with the receiver optionally being
 exposed to Instant Apps.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler,%20int)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, <a href="/reference/java/lang/String">String</a> broadcastPermission, <a href="/reference/android/os/Handler">Handler</a> scheduler, int flags)
      </code>
      
        <p>Register to receive intent broadcasts, to run in the context of
 <var translate="no">scheduler</var>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/Intent">Intent</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#registerReceiver(android.content.BroadcastReceiver,%20android.content.IntentFilter,%20java.lang.String,%20android.os.Handler)">registerReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver, <a href="/reference/android/content/IntentFilter">IntentFilter</a> filter, <a href="/reference/java/lang/String">String</a> broadcastPermission, <a href="/reference/android/os/Handler">Handler</a> scheduler)
      </code>
      
        <p>Register to receive intent broadcasts, to run in the context of
 <var translate="no">scheduler</var>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#removeStickyBroadcast(android.content.Intent)">removeStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#removeStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">removeStickyBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#revokeSelfPermissionOnKill(java.lang.String)">revokeSelfPermissionOnKill</a>(<a href="/reference/java/lang/String">String</a> permName)
      </code>
      
        <p>Triggers the asynchronous revocation of a runtime permission.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="33" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#revokeSelfPermissionsOnKill(java.util.Collection<java.lang.String>)">revokeSelfPermissionsOnKill</a>(<a href="/reference/java/util/Collection">Collection</a>&lt;<a href="/reference/java/lang/String">String</a>&gt; permissions)
      </code>
      
        <p>Triggers the revocation of one or more permissions for the calling package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#revokeUriPermission(android.net.Uri,%20int)">revokeUriPermission</a>(<a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Remove all permissions to access a particular content provider Uri
 that were previously added with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission(String, Uri, int)</a></code> or <em>any other</em> mechanism.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#revokeUriPermission(java.lang.String,%20android.net.Uri,%20int)">revokeUriPermission</a>(<a href="/reference/java/lang/String">String</a> toPackage, <a href="/reference/android/net/Uri">Uri</a> uri, int modeFlags)
      </code>
      
        <p>Remove permissions to access a particular content provider Uri
 that were previously added with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#grantUriPermission(java.lang.String,%20android.net.Uri,%20int)">grantUriPermission(String, Uri, int)</a></code> for a specific target
 package.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, allowing
 an optional required permission to be enforced.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">sendBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String)">sendBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent,%20java.lang.String)">sendBroadcast(android.content.Intent, java.lang.String)</a></code> that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendBroadcastWithMultiplePermissions(android.content.Intent,%20java.lang.String[])">sendBroadcastWithMultiplePermissions</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String[]</a> receiverPermissions)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, allowing
 an array of required permissions to be enforced.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="30" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/java/lang/String">String</a> receiverAppOp, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)</a></code> that allows you to specify the App Op to enforce restrictions on which receivers
 the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to
 receive data back from the broadcast.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.os.Bundle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/os/Bundle">Bundle</a> options, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendBroadcast(android.content.Intent)">sendBroadcast(android.content.Intent)</a></code> that allows you to
 receive data back from the broadcast.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String)">sendOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/java/lang/String">String</a> receiverPermission)
      </code>
      
        <p>Broadcast the given intent to all interested BroadcastReceivers, delivering
 them one at a time to allow more preferred receivers to consume the
 broadcast before it is delivered to less preferred receivers.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/java/lang/String">String</a> receiverPermission, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p>Version of
 <code translate="no" dir="ltr"><a href="/reference/android/content/Context#sendOrderedBroadcast(android.content.Intent,%20java.lang.String,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendOrderedBroadcast(android.content.Intent, java.lang.String, android.content.BroadcastReceiver, android.os.Handler, int, java.lang.String, android.os.Bundle)</a></code>
 that allows you to specify the
 user the broadcast will be sent to.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendStickyBroadcast(android.content.Intent)">sendStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="31" data-version-deprecated="31" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendStickyBroadcast(android.content.Intent,%20android.os.Bundle)">sendStickyBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 31.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendStickyBroadcastAsUser(android.content.Intent,%20android.os.UserHandle)">sendStickyBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendStickyOrderedBroadcast(android.content.Intent,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendStickyOrderedBroadcast</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="17" data-version-deprecated="21" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#sendStickyOrderedBroadcastAsUser(android.content.Intent,%20android.os.UserHandle,%20android.content.BroadcastReceiver,%20android.os.Handler,%20int,%20java.lang.String,%20android.os.Bundle)">sendStickyOrderedBroadcastAsUser</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/UserHandle">UserHandle</a> user, <a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> resultReceiver, <a href="/reference/android/os/Handler">Handler</a> scheduler, int initialCode, <a href="/reference/java/lang/String">String</a> initialData, <a href="/reference/android/os/Bundle">Bundle</a> initialExtras)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 21.
    Sticky broadcasts should not be used.  They provide no security (anyone
 can access them), no protection (anyone can modify them), and many other problems.
 The recommended pattern is to use a non-sticky broadcast to report that <em>something</em>
 has changed, with another mechanism for apps to retrieve the current value whenever
 desired.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#setTheme(int)">setTheme</a>(int resid)
      </code>
      
        <p>Set the base theme for this context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#setWallpaper(android.graphics.Bitmap)">setWallpaper</a>(<a href="/reference/android/graphics/Bitmap">Bitmap</a> bitmap)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap)">WallpaperManager.set()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" data-version-deprecated="15" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#setWallpaper(java.io.InputStream)">setWallpaper</a>(<a href="/reference/java/io/InputStream">InputStream</a> data)
      </code>
      
        <p><em>
      This method was deprecated
      in API level 15.
    Use <code translate="no" dir="ltr"><a href="/reference/android/app/WallpaperManager#setStream(java.io.InputStream)">WallpaperManager.set()</a></code> instead.
 <p>This method requires the caller to hold the permission
 <code translate="no" dir="ltr"><a href="/reference/android/Manifest.permission#SET_WALLPAPER">Manifest.permission.SET_WALLPAPER</a></code>.</em>
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch multiple new activities.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startActivities(android.content.Intent[])">startActivities</a>(<a href="/reference/android/content/Intent">Intent[]</a> intents)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivities(android.content.Intent[],%20android.os.Bundle)">startActivities(android.content.Intent[], android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startActivity(android.content.Intent)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code> with no options
 specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity</a>(<a href="/reference/android/content/Intent">Intent</a> intent, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Launch a new activity.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startForegroundService(android.content.Intent)">startForegroundService</a>(<a href="/reference/android/content/Intent">Intent</a> service)
      </code>
      
        <p>Similar to <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startService(android.content.Intent)">startService(android.content.Intent)</a></code>, but with an implicit promise that the
 Service will call <code translate="no" dir="ltr"><a href="/reference/android/app/Service#startForeground(int,%20android.app.Notification)">startForeground(int, android.app.Notification)</a></code> once it begins running.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startInstrumentation(android.content.ComponentName,%20java.lang.String,%20android.os.Bundle)">startInstrumentation</a>(<a href="/reference/android/content/ComponentName">ComponentName</a> className, <a href="/reference/java/lang/String">String</a> profileFile, <a href="/reference/android/os/Bundle">Bundle</a> arguments)
      </code>
      
        <p>Start executing an <code translate="no" dir="ltr"><a href="/reference/android/app/Instrumentation">Instrumentation</a></code> class.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags)
      </code>
      
        <p>Same as <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender(android.content.IntentSender, android.content.Intent, int, int, int, android.os.Bundle)</a></code>
 with no options specified.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="16" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startIntentSender(android.content.IntentSender,%20android.content.Intent,%20int,%20int,%20int,%20android.os.Bundle)">startIntentSender</a>(<a href="/reference/android/content/IntentSender">IntentSender</a> intent, <a href="/reference/android/content/Intent">Intent</a> fillInIntent, int flagsMask, int flagsValues, int extraFlags, <a href="/reference/android/os/Bundle">Bundle</a> options)
      </code>
      
        <p>Like <code translate="no" dir="ltr"><a href="/reference/android/content/Context#startActivity(android.content.Intent,%20android.os.Bundle)">startActivity(android.content.Intent, android.os.Bundle)</a></code>, but taking a IntentSender
 to start.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/content/ComponentName">ComponentName</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#startService(android.content.Intent)">startService</a>(<a href="/reference/android/content/Intent">Intent</a> service)
      </code>
      
        <p>Request that a given application service be started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#stopService(android.content.Intent)">stopService</a>(<a href="/reference/android/content/Intent">Intent</a> service)
      </code>
      
        <p>Request that a given application service be stopped.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#unbindService(android.content.ServiceConnection)">unbindService</a>(<a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn)
      </code>
      
        <p>Disconnect from an application service.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#unregisterComponentCallbacks(android.content.ComponentCallbacks)">unregisterComponentCallbacks</a>(<a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a> callback)
      </code>
      
        <p>Remove a <code translate="no" dir="ltr"><a href="/reference/android/content/ComponentCallbacks">ComponentCallbacks</a></code> object that was previously registered
 with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#registerComponentCallbacks(android.content.ComponentCallbacks)">registerComponentCallbacks(android.content.ComponentCallbacks)</a></code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="34" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#unregisterDeviceIdChangeListener(java.util.function.IntConsumer)">unregisterDeviceIdChangeListener</a>(<a href="/reference/java/util/function/IntConsumer">IntConsumer</a> listener)
      </code>
      
        <p>Removes a device ID changed listener from the Context.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#unregisterReceiver(android.content.BroadcastReceiver)">unregisterReceiver</a>(<a href="/reference/android/content/BroadcastReceiver">BroadcastReceiver</a> receiver)
      </code>
      
        <p>Unregister a previously registered BroadcastReceiver.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="29" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/Context#updateServiceGroup(android.content.ServiceConnection,%20int,%20int)">updateServiceGroup</a>(<a href="/reference/android/content/ServiceConnection">ServiceConnection</a> conn, int group, int importance)
      </code>
      
        <p>For a service previously bound with <code translate="no" dir="ltr"><a href="/reference/android/content/Context#bindService(android.content.Intent,%20android.content.Context.BindServiceFlags,%20java.util.concurrent.Executor,%20android.content.ServiceConnection)">bindService(Intent, BindServiceFlags, Executor, ServiceConnection)</a></code> or a related method, change
 how the system manages that service's process in relation to other processes.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From class
      <code translate="no" dir="ltr">
        
          <a href="/reference/java/lang/Object">java.lang.Object</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/Object">Object</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#clone()">clone</a>()
      </code>
      
        <p>Creates and returns a copy of this object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#equals(java.lang.Object)">equals</a>(<a href="/reference/java/lang/Object">Object</a> obj)
      </code>
      
        <p>Indicates whether some other object is "equal to" this one.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#finalize()">finalize</a>()
      </code>
      
        <p>Called by the garbage collector on an object when garbage collection
 determines that there are no more references to the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        <a href="/reference/java/lang/Class">Class</a>&lt;?&gt;</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#getClass()">getClass</a>()
      </code>
      
        <p>Returns the runtime class of this <code translate="no" dir="ltr">Object</code>.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        int</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#hashCode()">hashCode</a>()
      </code>
      
        <p>Returns a hash code value for the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#notify()">notify</a>()
      </code>
      
        <p>Wakes up a single thread that is waiting on this object's
 monitor.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#notifyAll()">notifyAll</a>()
      </code>
      
        <p>Wakes up all threads that are waiting on this object's monitor.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        
        
        <a href="/reference/java/lang/String">String</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#toString()">toString</a>()
      </code>
      
        <p>Returns a string representation of the object.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait(long,%20int)">wait</a>(long timeoutMillis, int nanos)
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>, or until a
 certain amount of real time has elapsed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait(long)">wait</a>(long timeoutMillis)
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>, or until a
 certain amount of real time has elapsed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        
        
        
        final
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/java/lang/Object#wait()">wait</a>()
      </code>
      
        <p>Causes the current thread to wait until it is awakened, typically
 by being <em>notified</em> or <em>interrupted</em>.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/LayoutInflater.Factory2">android.view.LayoutInflater.Factory2</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/LayoutInflater.Factory2#onCreateView(android.view.View,%20java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">onCreateView</a>(<a href="/reference/android/view/View">View</a> parent, <a href="/reference/java/lang/String">String</a> name, <a href="/reference/android/content/Context">Context</a> context, <a href="/reference/android/util/AttributeSet">AttributeSet</a> attrs)
      </code>
      
        <p>Version of <code translate="no" dir="ltr"><a href="/reference/android/view/LayoutInflater.Factory#onCreateView(java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">LayoutInflater.Factory.onCreateView(java.lang.String, android.content.Context, android.util.AttributeSet)</a></code>
 that also supplies the parent that the view created view will be
 placed in.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/Window.Callback">android.view.Window.Callback</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="12" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchGenericMotionEvent(android.view.MotionEvent)">dispatchGenericMotionEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called to process generic motion events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchKeyEvent(android.view.KeyEvent)">dispatchKeyEvent</a>(<a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called to process key events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchKeyShortcutEvent(android.view.KeyEvent)">dispatchKeyShortcutEvent</a>(<a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called to process a key shortcut event.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="4" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent)">dispatchPopulateAccessibilityEvent</a>(<a href="/reference/android/view/accessibility/AccessibilityEvent">AccessibilityEvent</a> event)
      </code>
      
        <p>Called to process population of <code translate="no" dir="ltr"><a href="/reference/android/view/accessibility/AccessibilityEvent">AccessibilityEvent</a></code>s.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchTouchEvent(android.view.MotionEvent)">dispatchTouchEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called to process touch screen events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#dispatchTrackballEvent(android.view.MotionEvent)">dispatchTrackballEvent</a>(<a href="/reference/android/view/MotionEvent">MotionEvent</a> event)
      </code>
      
        <p>Called to process trackball events.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onActionModeFinished(android.view.ActionMode)">onActionModeFinished</a>(<a href="/reference/android/view/ActionMode">ActionMode</a> mode)
      </code>
      
        <p>Called when an action mode has been finished.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onActionModeStarted(android.view.ActionMode)">onActionModeStarted</a>(<a href="/reference/android/view/ActionMode">ActionMode</a> mode)
      </code>
      
        <p>Called when an action mode has been started.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onAttachedToWindow()">onAttachedToWindow</a>()
      </code>
      
        <p>Called when the window has been attached to the window manager.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onContentChanged()">onContentChanged</a>()
      </code>
      
        <p>This hook is called whenever the content view of the screen changes
 (due to a call to
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#setContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">Window.setContentView</a></code> or
 <code translate="no" dir="ltr"><a href="/reference/android/view/Window#addContentView(android.view.View,%20android.view.ViewGroup.LayoutParams)">Window.addContentView</a></code>).
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onCreatePanelMenu(int,%20android.view.Menu)">onCreatePanelMenu</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Initialize the contents of the menu for panel 'featureId'.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onCreatePanelView(int)">onCreatePanelView</a>(int featureId)
      </code>
      
        <p>Instantiate the view to display in the panel for 'featureId'.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onDetachedFromWindow()">onDetachedFromWindow</a>()
      </code>
      
        <p>Called when the window has been detached from the window manager.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onMenuItemSelected(int,%20android.view.MenuItem)">onMenuItemSelected</a>(int featureId, <a href="/reference/android/view/MenuItem">MenuItem</a> item)
      </code>
      
        <p>Called when a panel's menu item has been selected by the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onMenuOpened(int,%20android.view.Menu)">onMenuOpened</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Called when a panel's menu is opened by the user.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onPanelClosed(int,%20android.view.Menu)">onPanelClosed</a>(int featureId, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Called when a panel is being closed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="26" >
  
  
    <td><code translate="no" dir="ltr">
        
        default
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onPointerCaptureChanged(boolean)">onPointerCaptureChanged</a>(boolean hasCapture)
      </code>
      
        <p>Called when pointer capture is enabled or disabled for the current window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onPreparePanel(int,%20android.view.View,%20android.view.Menu)">onPreparePanel</a>(int featureId, <a href="/reference/android/view/View">View</a> view, <a href="/reference/android/view/Menu">Menu</a> menu)
      </code>
      
        <p>Prepare a panel to be displayed.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="24" >
  
  
    <td><code translate="no" dir="ltr">
        
        default
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onProvideKeyboardShortcuts(java.util.List<android.view.KeyboardShortcutGroup>,%20android.view.Menu,%20int)">onProvideKeyboardShortcuts</a>(<a href="/reference/java/util/List">List</a>&lt;<a href="/reference/android/view/KeyboardShortcutGroup">KeyboardShortcutGroup</a>&gt; data, <a href="/reference/android/view/Menu">Menu</a> menu, int deviceId)
      </code>
      
        <p>Called when Keyboard Shortcuts are requested for the current window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onSearchRequested()">onSearchRequested</a>()
      </code>
      
        <p>Called when the user signals the desire to start a search.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onSearchRequested(android.view.SearchEvent)">onSearchRequested</a>(<a href="/reference/android/view/SearchEvent">SearchEvent</a> searchEvent)
      </code>
      
        <p>Called when the user signals the desire to start a search.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onWindowAttributesChanged(android.view.WindowManager.LayoutParams)">onWindowAttributesChanged</a>(<a href="/reference/android/view/WindowManager.LayoutParams">WindowManager.LayoutParams</a> attrs)
      </code>
      
        <p>This is called whenever the current window attributes change.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onWindowFocusChanged(boolean)">onWindowFocusChanged</a>(boolean hasFocus)
      </code>
      
        <p>This hook is called whenever the window focus changes.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="11" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onWindowStartingActionMode(android.view.ActionMode.Callback)">onWindowStartingActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback)
      </code>
      
        <p>Called when an action mode is being started for this window.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="23" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/view/ActionMode">ActionMode</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/Window.Callback#onWindowStartingActionMode(android.view.ActionMode.Callback,%20int)">onWindowStartingActionMode</a>(<a href="/reference/android/view/ActionMode.Callback">ActionMode.Callback</a> callback, int type)
      </code>
      
        <p>Called when an action mode is being started for this window.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/KeyEvent.Callback">android.view.KeyEvent.Callback</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/KeyEvent.Callback#onKeyDown(int,%20android.view.KeyEvent)">onKeyDown</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a key down event has occurred.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="5" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/KeyEvent.Callback#onKeyLongPress(int,%20android.view.KeyEvent)">onKeyLongPress</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a long press has occurred.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/KeyEvent.Callback#onKeyMultiple(int,%20int,%20android.view.KeyEvent)">onKeyMultiple</a>(int keyCode, int count, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a user's interaction with an analog control, such as
 flinging a trackball, generates simulated down/up events for the same
 key multiple times in quick succession.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        boolean</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/KeyEvent.Callback#onKeyUp(int,%20android.view.KeyEvent)">onKeyUp</a>(int keyCode, <a href="/reference/android/view/KeyEvent">KeyEvent</a> event)
      </code>
      
        <p>Called when a key up event has occurred.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/View.OnCreateContextMenuListener">android.view.View.OnCreateContextMenuListener</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/View.OnCreateContextMenuListener#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo)">onCreateContextMenu</a>(<a href="/reference/android/view/ContextMenu">ContextMenu</a> menu, <a href="/reference/android/view/View">View</a> v, <a href="/reference/android/view/ContextMenu.ContextMenuInfo">ContextMenu.ContextMenuInfo</a> menuInfo)
      </code>
      
        <p>Called when the context menu for this view is being built.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/content/ComponentCallbacks2">android.content.ComponentCallbacks2</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="14" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ComponentCallbacks2#onTrimMemory(int)">onTrimMemory</a>(int level)
      </code>
      
        <p>Called when the operating system has determined that it is a good
 time for a process to trim unneeded memory from its process.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/view/LayoutInflater.Factory">android.view.LayoutInflater.Factory</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        <a href="/reference/android/view/View">View</a></code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/view/LayoutInflater.Factory#onCreateView(java.lang.String,%20android.content.Context,%20android.util.AttributeSet)">onCreateView</a>(<a href="/reference/java/lang/String">String</a> name, <a href="/reference/android/content/Context">Context</a> context, <a href="/reference/android/util/AttributeSet">AttributeSet</a> attrs)
      </code>
      
        <p>Hook you can supply that is called when inflating from a LayoutInflater.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>



<tr  >
<td colspan="2">
  <div class="expandable jd-inherited-apis">
    <span class="expand-control">From interface
      <code translate="no" dir="ltr">
        
          <a href="/reference/android/content/ComponentCallbacks">android.content.ComponentCallbacks</a>
        
      </code>
    </span>
    <table class="responsive">
      


  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ComponentCallbacks#onConfigurationChanged(android.content.res.Configuration)">onConfigurationChanged</a>(<a href="/reference/android/content/res/Configuration">Configuration</a> newConfig)
      </code>
      
        <p>Called by the system when the device configuration changes while your
 component is running.
        
    
</p>
      
    </td>
  </tr>
  

  <tr data-version-added="1" >
  
  
    <td><code translate="no" dir="ltr">
        abstract
        
        
        
        
        void</code>
    </td>
  
    <td width="100%">
      <code translate="no" dir="ltr">
      <a href="/reference/android/content/ComponentCallbacks#onLowMemory()">onLowMemory</a>()
      </code>
      
        <p>This is called when the overall system is running low on memory, and
 actively running processes should trim their memory usage.
        
    
</p>
      
    </td>
  </tr>
  


    </table>
  </div>
</td></tr>


</table>



<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- Fields -->


<!-- Public ctors -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->
<h2 class="api-section" id="public-constructors_1" data-text="Public constructors">Public constructors</h2>


<div >
    <h3 class="api-name" id="AccountAuthenticatorActivity()" data-text="AccountAuthenticatorActivity">AccountAuthenticatorActivity</h3>
    <div class="api-level">
      <div>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public AccountAuthenticatorActivity ()</pre>
    
    

    
  <p></p></p>

</div>





<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2 class="api-section" id="public-methods_1" data-text="Public methods">Public methods</h2>


<div data-version-added="5" data-version-deprecated="30">
    <h3 class="api-name" id="finish()" data-text="finish">finish</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 5</a>
  <br>Deprecated in
    <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level
      30</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public void finish ()</pre>
    
    

    
  <p>Sends the result or a Constants.ERROR_CODE_CANCELED error if a result isn't present.</p></p>

</div>

<div data-version-added="5" data-version-deprecated="30">
    <h3 class="api-name" id="setAccountAuthenticatorResult(android.os.Bundle)" data-text="setAccountAuthenticatorResult">setAccountAuthenticatorResult</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 5</a>
  <br>Deprecated in
    <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level
      30</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
public final void setAccountAuthenticatorResult (<a href="/reference/android/os/Bundle">Bundle</a> result)</pre>
    
    

    
  <p>Set the result that is to be sent as the result of the request that caused this
 Activity to be launched. If result is null or this method is never called then
 the request will be canceled.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">result</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">Bundle</code>: this is returned as the result of the AbstractAccountAuthenticator request</p></td>
      </tr>
    </table>

</div>





<!-- ========= METHOD DETAIL ======== -->

<h2 class="api-section" id="protected-methods_1" data-text="Protected methods">Protected methods</h2>


<div data-version-added="5" data-version-deprecated="30">
    <h3 class="api-name" id="onCreate(android.os.Bundle)" data-text="onCreate">onCreate</h3>
    <div class="api-level">
      <div>
    Added in <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level 5</a>
  <br>Deprecated in
    <a href="/guide/topics/manifest/uses-sdk-element#ApiLevels">API level
      30</a>
  </div>
      
  

    </div>
<pre class="api-signature no-pretty-print" translate="no" dir="ltr">
protected void onCreate (<a href="/reference/android/os/Bundle">Bundle</a> icicle)</pre>
    
    

    
  <p>Retrieves the AccountAuthenticatorResponse from either the intent of the icicle, if the
 icicle is non-zero.</p></p>
    <table class="responsive">
    <tr><th colspan=2>Parameters</th></tr>
      <tr>
        <td><code translate="no" dir="ltr">icicle</code></td>
        <td width="100%">
          <code translate="no" dir="ltr">Bundle</code>: the save instance data of this Activity, may be null</p></td>
      </tr>
    </table>

</div>





<!-- ========= END OF CLASS DATA ========= -->

</div><!-- end jd-content -->


</div><!-- end devsite ReferenceObject -->

  

  
    <devsite-hats-survey class="nocontent"
      hats-id="onAFgYxTD0kxBYCLVTd0Z41p75CM"
      listnr-id="5207477"></devsite-hats-survey>
  
</div>

  

  
    
      <devsite-recommendations display="in-page" hidden yield>
      </devsite-recommendations>
    
    
      
    <devsite-thumb-rating position="footer">
    </devsite-thumb-rating>
  
       
    
    
      <devsite-recommendations id="recommendations-link" yield></devsite-recommendations>
    
  

  
  
</article>


<devsite-content-footer class="nocontent">
  <p>Content and code samples on this page are subject to the licenses described in the <a href="/license">Content License</a>. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.</p>
  <p>Last updated 2023-10-24 UTC.</p>
</devsite-content-footer>


<devsite-notification
>
</devsite-notification>


  
<div class="devsite-content-data">
  <template class="devsite-thumb-rating-down-categories">
  [{
      "type": "thumb-down",
      "id": "missingTheInformationINeed",
      "label":"Missing the information I need"
    },{
      "type": "thumb-down",
      "id": "tooComplicatedTooManySteps",
      "label":"Too complicated / too many steps"
    },{
      "type": "thumb-down",
      "id": "outOfDate",
      "label":"Out of date"
    },{
      "type": "thumb-down",
      "id": "samplesCodeIssue",
      "label":"Samples / code issue"
    },{
      "type": "thumb-down",
      "id": "otherDown",
      "label":"Other"
    }]
  </template>
  <template class="devsite-thumb-rating-up-categories">
  [{
      "type": "thumb-up",
      "id": "easyToUnderstand",
      "label":"Easy to understand"
    },{
      "type": "thumb-up",
      "id": "solvedMyProblem",
      "label":"Solved my problem"
    },{
      "type": "thumb-up",
      "id": "otherUp",
      "label":"Other"
    }]
  </template>
  
</div>
            
          </devsite-content>
        </main>
        <devsite-footer-promos class="devsite-footer">
          
            

<nav class="devsite-footer-promos nocontent" aria-label="Promotions">
  <ul class="devsite-footer-promos-list">
    
    <li class="devsite-footer-promo">
      <a href="//x.com/AndroidDev"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer X Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="/_static/android/images/logo-x.svg"
                 loading="lazy"
                 alt="X">
          
        
        X
      </a>
      <div class="devsite-footer-promo-description">Follow @AndroidDev on X</div>
    </li>
    
    <li class="devsite-footer-promo">
      <a href="//www.youtube.com/user/androiddevelopers"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer YouTube Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="//www.gstatic.com/images/icons/material/product/2x/youtube_48dp.png"
                 loading="lazy"
                 alt="YouTube">
          
        
        YouTube
      </a>
      <div class="devsite-footer-promo-description">Check out Android Developers on YouTube</div>
    </li>
    
    <li class="devsite-footer-promo">
      <a href="//www.linkedin.com/showcase/androiddev"
         class="devsite-footer-promo-title gc-analytics-event"
         data-category="Site-Wide Custom Events"
       
       
         data-label="Footer LinkedIn Promo"
       >
        
        
          
            <img class="devsite-footer-promo-icon"
                 src="/_static/android/images/logo-linkedin.svg"
                 loading="lazy"
                 alt="LinkedIn">
          
        
        LinkedIn
      </a>
      <div class="devsite-footer-promo-description">Connect with the Android Developers community on LinkedIn</div>
    </li>
    
  </ul>
</nav>

          
        </devsite-footer-promos>
        <devsite-footer-linkboxes class="devsite-footer">
          
            
<nav class="devsite-footer-linkboxes nocontent" aria-label="Footer links">
  
  <ul class="devsite-footer-linkboxes-list">
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">More Android</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com/enterprise/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Android for Enterprise
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//www.android.com/security-center/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Security
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//source.android.com"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Source
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/news"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            News
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//android-developers.googleblog.com/"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
          
            Blog
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/podcasts"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 7)"
            >
            
              
              
            
          
            Podcasts
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Discover</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/games"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Gaming
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/ml"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Machine Learning
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/privacy"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Privacy
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/training/connectivity/5g"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
              
              
            
          
            5G
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Android Devices</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/large-screens"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Large screens
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/wear"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Wear OS
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/chrome-os"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            ChromeOS devices
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/cars"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Android for cars
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/things"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            Android Things
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/tv"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
              
              
            
          
            Android TV
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Releases</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/13"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android 13
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/12"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Android 12
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/11"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Android 11
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/10"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Android 10
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/pie"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
          
            Pie
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/oreo"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 6)"
            >
            
          
            Oreo
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/about/versions/nougat"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 7)"
            >
            
              
              
            
          
            Nougat
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Documentation and Downloads</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/studio/intro"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Android Studio guide
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/guide"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Developers guides
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/reference"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            API reference
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/studio"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
          
            Download Studio
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="/ndk"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 5)"
            >
            
              
              
            
          
            Android NDK
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
    <li class="devsite-footer-linkbox ">
    <h3 class="devsite-footer-linkbox-heading no-link">Support</h3>
      <ul class="devsite-footer-linkbox-list">
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//issuetracker.google.com/issues/new?component=190923&amp;template=841312"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 1)"
            >
            
          
            Report platform bug
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//issuetracker.google.com/issues/new?component=192697"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 2)"
            >
            
          
            Report documentation bug
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="//support.google.com/googleplay/android-developer"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 3)"
            >
            
          
            Google Play support
          
          </a>
          
          
        </li>
        
        <li class="devsite-footer-linkbox-item">
          
          <a href="https://g.co/userresearch/androiddeveloperfooter"
             class="devsite-footer-linkbox-link gc-analytics-event"
             data-category="Site-Wide Custom Events"
            
             data-label="Footer Link (index 4)"
            >
            
              
              
            
          
            Join research studies
          
          </a>
          
          
        </li>
        
      </ul>
    </li>
    
  </ul>
  
</nav>
          
        </devsite-footer-linkboxes>
        <devsite-footer-utility class="devsite-footer">
          
            

<div class="devsite-footer-utility nocontent">
  
  
  <nav class="devsite-footer-sites" aria-label="Other Google Developers websites">
    <a href="https://developers.google.com/"
       class="devsite-footer-sites-logo-link gc-analytics-event"
       data-category="Site-Wide Custom Events"
       data-label="Footer Google Developers Link">
      <picture>
        <source srcset="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/lockup-google-for-developers-dark-theme.svg"
                media="(prefers-color-scheme: none)"
                class="devsite-dark-theme"
                loading="lazy"
                alt="Google Developers">
        <img class="devsite-footer-sites-logo"
             src="https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/lockup-google-for-developers.svg"
             loading="lazy"
             alt="Google Developers">
      </picture>
    </a>
    <ul class="devsite-footer-sites-list">
      
      <li class="devsite-footer-sites-item">
        <a href="//developer.android.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Android Link"
         
         >
          Android
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//developer.chrome.com/home"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Chrome Link"
         
         >
          Chrome
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//firebase.google.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Firebase Link"
         
         >
          Firebase
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//cloud.google.com"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer Google Cloud Platform Link"
         
         >
          Google Cloud Platform
        </a>
      </li>
      
      <li class="devsite-footer-sites-item">
        <a href="//developers.google.com/products/"
           class="devsite-footer-sites-link
                  gc-analytics-event"
           data-category="Site-Wide Custom Events"
         
           data-label="Footer All products Link"
         
         >
          All products
        </a>
      </li>
      
    </ul>
  </nav>
  

  
  <nav class="devsite-footer-utility-links" aria-label="Utility links">
    
    <ul class="devsite-footer-utility-list">
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="//policies.google.com/privacy"
           data-category="Site-Wide Custom Events"
           data-label="Footer Privacy link"
         >
          Privacy
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/license"
           data-category="Site-Wide Custom Events"
           data-label="Footer License link"
         >
          License
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 ">
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/distribute/marketing-tools/brand-guidelines"
           data-category="Site-Wide Custom Events"
           data-label="Footer Brand guidelines link"
         >
          Brand guidelines
        </a>
        
      </li>
      
      <li class="devsite-footer-utility-item
                 devsite-footer-utility-button">
        
        <span class="devsite-footer-utility-description">Get news and tips by email</span>
        
        
        <a class="devsite-footer-utility-link gc-analytics-event"
           href="/updates"
           data-category="Site-Wide Custom Events"
           data-label="Footer Subscribe link"
         >
          Subscribe
        </a>
        
      </li>
      
    </ul>
    
    
<devsite-language-selector>
  <ul role="presentation">
    
    
    <li role="presentation">
      <a role="menuitem" lang="en"
        >English</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="es_419"
        >Español – América Latina</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="id"
        >Indonesia</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="pt_br"
        >Português – Brasil</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="zh_cn"
        >中文 – 简体</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="ja"
        >日本語</a>
    </li>
    
    <li role="presentation">
      <a role="menuitem" lang="ko"
        >한국어</a>
    </li>
    
  </ul>
</devsite-language-selector>

  </nav>
</div>
          
        </devsite-footer-utility>
        <devsite-panel></devsite-panel>
        
      </section></section>
    <devsite-sitemask></devsite-sitemask>
    <devsite-snackbar
    
    >
</devsite-snackbar>
    <devsite-tooltip ></devsite-tooltip>
    <devsite-heading-link></devsite-heading-link>
    <devsite-analytics analytics-iframe>
      
        <script type="application/json" analytics>[{&#34;dimensions&#34;: {&#34;dimension6&#34;: &#34;en&#34;, &#34;dimension11&#34;: false, &#34;dimension5&#34;: &#34;en&#34;, &#34;dimension1&#34;: &#34;Signed out&#34;, &#34;dimension3&#34;: false, &#34;dimension4&#34;: &#34;Android Developers&#34;}, &#34;gaid&#34;: &#34;UA-5831155-1&#34;, &#34;metrics&#34;: {&#34;ratings_count&#34;: &#34;metric2&#34;, &#34;ratings_value&#34;: &#34;metric1&#34;}}]</script>
<script type="application/json" tag-management>{&#34;ga4&#34;: [], &#34;ga4p&#34;: [], &#34;gtm&#34;: [&#34;GTM-KMSWPCJ&#34;], &#34;parameters&#34;: {&#34;internalUser&#34;: &#34;False&#34;, &#34;language&#34;: {&#34;machineTranslated&#34;: &#34;False&#34;, &#34;requested&#34;: &#34;en&#34;, &#34;served&#34;: &#34;en&#34;}, &#34;pageType&#34;: &#34;reference&#34;, &#34;projectName&#34;: &#34;Android Developers&#34;, &#34;signedIn&#34;: &#34;False&#34;, &#34;tenant&#34;: &#34;android&#34;, &#34;recommendations&#34;: {&#34;sourcePage&#34;: &#34;&#34;, &#34;sourceType&#34;: 0, &#34;sourceRank&#34;: 0, &#34;sourceIdenticalDescriptions&#34;: 0, &#34;sourceTitleWords&#34;: 0, &#34;sourceDescriptionWords&#34;: 0, &#34;experiment&#34;: &#34;&#34;}, &#34;experiment&#34;: {&#34;ids&#34;: &#34;&#34;}}, &#34;tags&#34;: [&#34;GTM-KMSWPCJ&#34;]}</script>
      
    </devsite-analytics>
    
      <devsite-badger></devsite-badger>
    
    
<android-fully-clickable
    target="
        .android-case-study .devsite-landing-row-item,
        .android-grouped-resources .devsite-landing-row-item,
        .android-illustrated-resources-index .devsite-landing-row-item,
        .android-illustrated-resources-primary .devsite-landing-row-item,
        .android-illustrated-resources-secondary .devsite-landing-row-item,
        .android-illustrated-resources-secondary-small .devsite-landing-row-item,
        .android-illustrated-resources-tertiary .devsite-landing-row-item,
        .android-illustrated-resources-tertiary-small .devsite-landing-row-item,
        .android-promo .devsite-landing-row-item,
        .android-quick-link,
        .android-samples .devsite-card-wrapper,
        .fully-clickable"
    watch=".android-samples, devsite-content"></android-fully-clickable>
    <script nonce="RrrSXO4rDkh4Zp9L+6pnSFhnQJCZNI">
  
  (function(d,e,v,s,i,t,E){d['GoogleDevelopersObject']=i;
    t=e.createElement(v);t.async=1;t.src=s;E=e.getElementsByTagName(v)[0];
    E.parentNode.insertBefore(t,E);})(window, document, 'script',
    'https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/js/app_loader.js', '[3,"en",null,"/js/devsite_app_module.js","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android","https://android-dot-devsite-v2-prod.appspot.com",null,null,["/_pwa/android/manifest.json","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/images/video-placeholder.svg","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/favicon.svg","https://www.gstatic.com/devrel-devsite/prod/va65162e8ce9aacc75e4d3c0cd6d166fc6ceaaf184fea0ff0eac1d9b62c0480be/android/images/rebrand/lockup.svg","https://fonts.googleapis.com/css?family=Google+Sans:400,500,600,700|Google+Sans+Text:400,400italic,500,500italic,600,600italic,700,700italic|Roboto+Mono:400,500,700&display=swap"],1,null,[1,6,8,12,14,17,21,25,40,50,52,63,70,75,76,80,87,91,92,93,97,98,100,101,102,103,104,105,107,108,109,110,111,112,113,115,116,117,118,120,122,124,125,126,127,129,130,131,132,133,134,135,136,138,140,141,144,147,148,149,150,151,152,154,155,156,157,158,159,161,163,164,165,168,169,170,172,173,179,180,182,183,186,190,191,193,196],"AIzaSyAP-jjEJBzmIyKR4F-3XITp8yM9T1gEEI8","AIzaSyB6xiKGDR5O3Ak2okS4rLkauxGUG7XP0hg","developer.android.com","AIzaSyAQk0fBONSGUqCNznf6Krs82Ap1-NV6J4o","AIzaSyCCxcqdrZ_7QMeLCRY20bh_SXdAYqy70KY",null,null,null,["Rebranding__enable_rebranding","Search__enable_acl_suggestions","Cloud__enable_free_trial_server_call","Significatio__enable_experiment_id_caching","Search__enable_page_map","Cloud__enable_cloudx_experiment_ids","MiscFeatureFlags__enable_firebase_utm","Profiles__enable_developer_profiles_interests","Profiles__enable_developer_profiles_dashboard_recommendations","Profiles__enable_profile_collections","Profiles__require_profile_eligibility_for_signin","Search__enable_suggestions_from_borg","MiscFeatureFlags__content_publisher_push_queue","BookNav__enable_tenant_cache_key","MiscFeatureFlags__enable_explain_this_code","Cloud__enable_cloud_dlp_service","MiscFeatureFlags__developers_footer_image","Search__enable_dynamic_content_confidential_banner","ContentExcellence__enable_googler_button","Concierge__enable_pushui","SignIn__enable_auto_signin_oauth","MiscFeatureFlags__emergency_css","Cloud__enable_cloud_shell","Localization__enable_locale_redirects","Cloud__enable_cloud_shell_fte_user_flow","OpenInReplit__enable_replit","Profiles__enable_awarding_url","Significatio__enable_footprints","Cloud__enable_cloudx_ping","Cloud__enable_cloud_facet_chat","Profiles__enable_searchable_interests","Search__enable_devsite_serp","Profiles__enable_public_developer_profiles","MiscFeatureFlags__developers_footer_dark_image","Badges__enable_delete_badges","Significatio__enable_by_tenant","BookNav__enable_book_nav_filtering","Badges__enable_hide_badges","Experiments__enable_experiments","Profiles__enable_inferred_interests","ContentExcellence__enable_verified_date","Profiles__enable_profile_communities","MiscFeatureFlags__enable_keyword_inheritance","Profiles__enable_profile_notifications_ui","MiscFeatureFlags__enable_tls_version_for_gaia_calls","Experiments__reqs_query_experiments","Badges__enable_drag_and_drop_badges","Profiles__enable_suggested_interests","MiscFeatureFlags__enable_project_variables","Profiles__enable_developer_profiles_callout","AuthorPageInsights__enable_author_page_insights","Search__enable_faceted_search","BookNav__enable_collapsible_book_nav","Profiles__enable_page_saving"],null,null,"AIzaSyBLEMok-5suZ67qRPzx0qUtbnLmyT_kCVE","https://developerscontentserving-pa.googleapis.com","AIzaSyCM4QpTRSqP5qI4Dvjt4OAScIN8sOUlO-k","https://developerscontentsearch-pa.googleapis.com",2]')
  
</script>
    <devsite-a11y-announce></devsite-a11y-announce>
  </body>
</html>